1load("@prelude//toolchains:cxx.bzl", "system_cxx_toolchain") 2load("@prelude//toolchains:genrule.bzl", "system_genrule_toolchain") 3load("@prelude//toolchains:python.bzl", "system_python_bootstrap_toolchain") 4load("@prelude//toolchains:remote_test_execution.bzl", "remote_test_execution_toolchain") 5load("@prelude//toolchains:rust.bzl", "system_rust_toolchain") 6 7system_cxx_toolchain( 8 name = "cxx", 9 cxx_flags = select({ 10 "config//os:linux": ["-std=c++17"], 11 "config//os:macos": ["-std=c++17"], 12 "config//os:windows": [], 13 }), 14 link_flags = select({ 15 "config//os:linux": ["-lstdc++"], 16 "config//os:macos": ["-lc++"], 17 "config//os:windows": [], 18 }), 19 visibility = ["PUBLIC"], 20) 21 22system_genrule_toolchain( 23 name = "genrule", 24 visibility = ["PUBLIC"], 25) 26 27system_python_bootstrap_toolchain( 28 name = "python_bootstrap", 29 visibility = ["PUBLIC"], 30) 31 32system_rust_toolchain( 33 name = "rust", 34 default_edition = None, 35 doctests = True, 36 visibility = ["PUBLIC"], 37) 38 39remote_test_execution_toolchain( 40 name = "remote_test_execution", 41 visibility = ["PUBLIC"], 42) 43