• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1"""Constants related to Bazel platforms."""
2
3# This dict denotes the suffixes for host platforms (keys) and the constraints
4# associated with them (values). Used in transitions and tests, in addition to
5# here.
6host_platforms = {
7    "linux_x86": [
8        "@platforms//cpu:x86_32",
9        "@platforms//os:linux",
10    ],
11    "linux_x86_64": [
12        "@platforms//cpu:x86_64",
13        "@platforms//os:linux",
14    ],
15    "linux_musl_x86": [
16        "@platforms//cpu:x86_32",
17        "@//build/bazel_common_rules/platforms/os:linux_musl",
18    ],
19    "linux_musl_x86_64": [
20        "@platforms//cpu:x86_64",
21        "@//build/bazel_common_rules/platforms/os:linux_musl",
22    ],
23    # linux_bionic is the OS for the Linux kernel plus the Bionic libc runtime,
24    # but without the rest of Android.
25    "linux_bionic_arm64": [
26        "@platforms//cpu:arm64",
27        "@//build/bazel_common_rules/platforms/os:linux_bionic",
28    ],
29    "linux_bionic_x86_64": [
30        "@platforms//cpu:x86_64",
31        "@//build/bazel_common_rules/platforms/os:linux_bionic",
32    ],
33    "darwin_arm64": [
34        "@platforms//cpu:arm64",
35        "@platforms//os:macos",
36    ],
37    "darwin_x86_64": [
38        "@platforms//cpu:x86_64",
39        "@platforms//os:macos",
40    ],
41    "windows_x86": [
42        "@platforms//cpu:x86_32",
43        "@platforms//os:windows",
44    ],
45    "windows_x86_64": [
46        "@platforms//cpu:x86_64",
47        "@platforms//os:windows",
48    ],
49}
50