|
3 | 3 | load("@bazel_skylib//lib:selects.bzl", "selects")
|
4 | 4 | load(
|
5 | 5 | ":triple_mappings.bzl",
|
| 6 | + "SUPPORTED_PLATFORM_TRIPLES", |
6 | 7 | "cpu_arch_to_constraints",
|
7 | 8 | "system_to_constraints",
|
8 | 9 | "triple_to_constraint_set",
|
9 | 10 | )
|
10 | 11 |
|
11 |
| -# All T1 Platforms should be supported, but aren't, see inline notes. |
12 |
| -_SUPPORTED_T1_PLATFORM_TRIPLES = [ |
13 |
| - "i686-apple-darwin", |
14 |
| - "i686-pc-windows-msvc", |
15 |
| - "i686-unknown-linux-gnu", |
16 |
| - "x86_64-apple-darwin", |
17 |
| - "x86_64-pc-windows-msvc", |
18 |
| - "x86_64-unknown-linux-gnu", |
19 |
| - # N.B. These "alternative" envs are not supported, as bazel cannot distinguish between them |
20 |
| - # and others using existing @platforms// config_values |
21 |
| - # |
22 |
| - #"i686-pc-windows-gnu", |
23 |
| - #"x86_64-pc-windows-gnu", |
24 |
| -] |
25 |
| - |
26 |
| -# Some T2 Platforms are supported, provided we have mappings to @platforms// entries. |
27 |
| -# See @rules_rust//rust/platform:triple_mappings.bzl for the complete list. |
28 |
| -_SUPPORTED_T2_PLATFORM_TRIPLES = [ |
29 |
| - "aarch64-apple-darwin", |
30 |
| - "aarch64-apple-ios", |
31 |
| - "aarch64-linux-android", |
32 |
| - "aarch64-unknown-linux-gnu", |
33 |
| - "arm-unknown-linux-gnueabi", |
34 |
| - "i686-linux-android", |
35 |
| - "i686-unknown-freebsd", |
36 |
| - "powerpc-unknown-linux-gnu", |
37 |
| - "s390x-unknown-linux-gnu", |
38 |
| - "wasm32-unknown-unknown", |
39 |
| - "wasm32-wasi", |
40 |
| - "x86_64-apple-ios", |
41 |
| - "x86_64-linux-android", |
42 |
| - "x86_64-unknown-freebsd", |
43 |
| -] |
44 |
| - |
45 | 12 | _SUPPORTED_CPU_ARCH = [
|
46 | 13 | "aarch64",
|
47 | 14 | "arm",
|
@@ -88,7 +55,7 @@ def declare_config_settings():
|
88 | 55 | actual = ":darwin",
|
89 | 56 | )
|
90 | 57 |
|
91 |
| - all_supported_triples = _SUPPORTED_T1_PLATFORM_TRIPLES + _SUPPORTED_T2_PLATFORM_TRIPLES |
| 58 | + all_supported_triples = SUPPORTED_PLATFORM_TRIPLES |
92 | 59 | for triple in all_supported_triples:
|
93 | 60 | native.config_setting(
|
94 | 61 | name = triple,
|
|
0 commit comments