forked from qir-alliance/qat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
51 lines (44 loc) · 957 Bytes
/
BUILD
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
# Compiler settings
config_setting(
name = "clang_compiler",
flag_values = {"@bazel_tools//tools/cpp:compiler": "clang"},
)
config_setting(
name = "gcc_compiler",
flag_values = {"@bazel_tools//tools/cpp:compiler": "gcc"},
)
# Standard library constraints
constraint_setting(name = "stdlib")
constraint_value(
name = "glibc",
constraint_setting = ":stdlib",
)
constraint_value(
name = "musl",
constraint_setting = ":stdlib",
)
# Platform constraints
platform(
name = "apple-silicon",
constraint_values = [
"@//:glibc",
"@platforms//cpu:aarch64",
"@platforms//os:osx",
],
)
platform(
name = "apple-x86",
constraint_values = [
"@//:glibc",
"@platforms//cpu:x86_64",
"@platforms//os:osx",
],
)
platform(
name = "linux-x86",
constraint_values = [
"@//:glibc",
"@platforms//cpu:x86_64",
"@platforms//os:linux",
],
)