This repository has been archived by the owner on Jul 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUCK
56 lines (52 loc) · 1.78 KB
/
BUCK
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
load("@prelude//toolchains:cxx.bzl", "system_cxx_toolchain")
load("@prelude//toolchains:genrule.bzl", "system_genrule_toolchain")
load("@prelude//toolchains:python.bzl", "system_python_bootstrap_toolchain")
load("@prelude//toolchains:remote_test_execution.bzl", "remote_test_execution_toolchain")
system_cxx_toolchain(
name = "cxx",
compiler_type = "clang",
cxx_compiler = select({
"prelude//os:linux": "clang++",
"prelude//os:macos": "/opt/homebrew/opt/llvm/bin/clang++",
"prelude//os:windows": "clang++"
}),
cxx_flags = select({
"config//os:linux": [
"-std=c++2c",
"-Wall",
"-Wunused-variable",
"-Wunused-const-variable",],
"config//os:macos": [
"-std=c++2c",
"-Wall",
"-Wunused-variable",
"-Wunused-const-variable",
"-D__STDC_CONSTANT_MACROS",
"-D__STDC_FORMAT_MACROS",
"-D__STDC_LIMIT_MACROS",
"-I/opt/homebrew/opt/llvm/include/",
"-L/opt/homebrew/opt/llvm/lib/c++",
"-stdlib=libc++",
"-Wl,-rpath,/opt/homebrew/opt/llvm/lib/c++",
"-Wl,-search_paths_first",
"-Wl,-headerpad_max_install_names",],
"config//os:windows": [
"-std=c++2c",
"-Wall",
"-Wunused-variable",
"-Wunused-const-variable",],
}),
visibility = ["PUBLIC"],
)
system_genrule_toolchain(
name = "genrule",
visibility = ["PUBLIC"],
)
system_python_bootstrap_toolchain(
name = "python_bootstrap",
visibility = ["PUBLIC"],
)
remote_test_execution_toolchain(
name = "remote_test_execution",
visibility = ["PUBLIC"],
)