File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,23 +7,11 @@ package(default_visibility = ["//visibility:public"])
77# `select()` gives us OR-of-OSes; other platforms get marked incompatible
88# so `bazel build/test //...` skips them cleanly.
99#
10- # The Linux branch additionally requires x86_64: the only registered standalone
11- # Linux Swift toolchain (`swift_toolchain_exec_ubuntu24.04`, see //:MODULE.bazel)
12- # is x86_64-only. Without the CPU constraint, Linux/aarch64 targets would stay
13- # "compatible" and then fail toolchain resolution instead of being skipped.
14- config_setting (
15- name = "linux_x86_64" ,
16- constraint_values = [
17- "@platforms//os:linux" ,
18- "@platforms//cpu:x86_64" ,
19- ],
20- )
21-
22- _SWIFT_SUPPORTED_PLATFORMS = select ({
23- ":linux_x86_64" : [],
24- "@platforms//os:macos" : [],
25- "//conditions:default" : ["@platforms//:incompatible" ],
26- })
10+ _SWIFT_SUPPORTED_PLATFORMS = select ({
11+ "@platforms//os:linux" : [],
12+ "@platforms//os:macos" : [],
13+ "//conditions:default" : ["@platforms//:incompatible" ],
14+ })
2715
2816# Swift FFI shim: wraps swift-syntax and exposes a small C ABI. The Rust
2917# targets below link against its `CcInfo`.
You can’t perform that action at this time.
0 commit comments