• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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:rust.bzl", "system_rust_toolchain")
5
6system_cxx_toolchain(
7    name = "cxx",
8    cxx_flags = select({
9        "config//os:linux": ["-std=c++17"],
10        "config//os:macos": ["-std=c++17"],
11        "config//os:windows": [],
12    }),
13    link_flags = select({
14        "config//os:linux": ["-lstdc++"],
15        "config//os:macos": ["-lc++"],
16        "config//os:windows": [],
17    }),
18    visibility = ["PUBLIC"],
19)
20
21system_genrule_toolchain(
22    name = "genrule",
23    visibility = ["PUBLIC"],
24)
25
26system_python_bootstrap_toolchain(
27    name = "python_bootstrap",
28    visibility = ["PUBLIC"],
29)
30
31system_rust_toolchain(
32    name = "rust",
33    clippy_toml = "root//:.clippy.toml",
34    default_edition = None,
35    visibility = ["PUBLIC"],
36)
37