Skip to content

Commit f384e29

Browse files
tausbnjketema
andauthored
unified: Clean up build
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com>
1 parent da1bbb7 commit f384e29

1 file changed

Lines changed: 5 additions & 17 deletions

File tree

unified/swift-syntax-rs/BUILD.bazel

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff 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`.

0 commit comments

Comments
 (0)