Skip to content

Commit 284dcb3

Browse files
authored
Remove opt-in swift_macos config from .bazelrc
1 parent 240267e commit 284dcb3

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

‎.bazelrc‎

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,6 @@ common --override_module=semmle_code=%workspace%/misc/bazel/semmle_code_stub
1212

1313
build --repo_env=CC=clang --repo_env=CXX=clang++
1414

15-
# macOS Xcode-coupled flags, kept as an opt-in `--config=swift_macos` for
16-
# manual debugging. The equivalent flags are applied automatically — but
17-
# only to `//unified/swift-syntax-rs` targets — via an incoming-edge
18-
# Starlark transition (see `unified/swift-syntax-rs/xcode_transition.bzl`),
19-
# so other macOS builds continue to use Bazel's built-in `local_config_cc`
20-
# and never materialize the `@local_config_xcode` /
21-
# `@local_config_apple_cc_toolchains` repos.
22-
#
23-
# - `--xcode_version_config` selects `apple_support`'s xcode_config, whose
24-
# version strings match the ones `rules_swift`'s `system_sdk` selects are
25-
# keyed on (Bazel's built-in `host_xcodes` does not match).
26-
# - `--extra_toolchains` forces `apple_support`'s CC toolchain ahead of
27-
# Bazel's built-in `local_config_cc` (whose `target_gnu_system_name` is
28-
# literally "local", which breaks `xcode_swift_toolchain`'s triple
29-
# parsing). Root-level `--extra_toolchains` beats module-registered
30-
# toolchains; only matches Apple platforms.
31-
build:swift_macos --xcode_version_config=@local_config_xcode//:host_xcodes
32-
build:swift_macos --extra_toolchains=@local_config_apple_cc_toolchains//:all
33-
3415
# Disable Android SDK auto-detection (we don't use it, and rules_android has Bazel 9 compatibility issues)
3516
build --repo_env=ANDROID_HOME=
3617

0 commit comments

Comments
 (0)