@@ -35,7 +35,8 @@ bazel_dep(name = "rules_swift", version = "4.0.0-rc4")
3535bazel_dep (name = "swift-syntax" , version = "602.0.0.bcr.2" )
3636# Direct dep on `apple_support` (transitively pulled in by `rules_swift`) so we
3737# can `use_repo` `local_config_xcode` and `local_config_apple_cc_toolchains`
38- # below, needed to make `xcode_swift_toolchain` work on macOS. See `.bazelrc`.
38+ # below, needed by the `swift_macos` bazelrc config that makes
39+ # `xcode_swift_toolchain` work on macOS. See `.bazelrc`.
3940bazel_dep (name = "apple_support" , version = "2.6.1" )
4041
4142bazel_dep (name = "zstd" , version = "1.5.7.bcr.1" )
@@ -248,15 +249,17 @@ register_toolchains(
248249)
249250
250251# `apple_support`'s xcode_config, selected via `--xcode_version_config` in
251- # `.bazelrc`. Needed because rules_swift's `system_sdk` selects use Xcode
252- # version strings from `apple_support`'s `xcode_locator.m`, which Bazel's
253- # built-in `host_xcodes` does not match.
252+ # the `swift_macos` bazelrc config (see `.bazelrc`). Needed because
253+ # rules_swift's `system_sdk` selects use Xcode version strings from
254+ # `apple_support`'s `xcode_locator.m`, which Bazel's built-in `host_xcodes`
255+ # does not match.
254256xcode_configure = use_extension ("@apple_support//xcode:xcode_configure.bzl" , "xcode_configure_extension" )
255257use_repo (xcode_configure , "local_config_xcode" )
256258
257259# `apple_support`'s CC toolchains, forced ahead of Bazel's built-in
258- # `local_config_cc` via `--extra_toolchains` in `.bazelrc`. Must be visible
259- # from the root module for the flag to resolve.
260+ # `local_config_cc` via `--extra_toolchains` in the `swift_macos` bazelrc
261+ # config (see `.bazelrc`). Must be visible from the root module for the flag
262+ # to resolve.
260263apple_cc_configure = use_extension ("@apple_support//crosstool:setup.bzl" , "apple_cc_configure_extension" )
261264use_repo (apple_cc_configure , "local_config_apple_cc_toolchains" )
262265
0 commit comments