-
Notifications
You must be signed in to change notification settings - Fork 38
/
BUILD
46 lines (39 loc) · 830 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
load(
"//configs:platforms.bzl",
"APPLE_PLATFORMS_CONSTRAINTS",
"CPU_TO_DEFAULT_PLATFORM_NAME",
)
package(default_visibility = ["//visibility:public"])
[
platform(
name = cpu,
constraint_values = constraints,
)
for cpu, constraints in APPLE_PLATFORMS_CONSTRAINTS.items()
]
alias(
name = "macos_x86_64",
actual = "darwin_x86_64",
)
alias(
name = "macos_arm64",
actual = "darwin_arm64",
)
alias(
name = "macos_arm64e",
actual = "darwin_arm64e",
)
[
label_flag(
name = platform + "_platform",
build_setting_default = platform,
)
for platform in CPU_TO_DEFAULT_PLATFORM_NAME.values()
]
# Consumed by bazel tests.
filegroup(
name = "for_bazel_tests",
testonly = True,
srcs = glob(["**"]),
visibility = ["//:__pkg__"],
)