File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -307,6 +307,15 @@ register_toolchains(
307307xcode_configure = use_extension ("@apple_support//xcode:xcode_configure.bzl" , "xcode_configure_extension" )
308308use_repo (xcode_configure , "local_config_xcode" )
309309
310+ # `apple_support` also registers `@local_config_apple_cc_toolchains//:all`
311+ # from its own `MODULE.bazel`, but the CC toolchains it generates lose
312+ # toolchain-resolution ordering to Bazel's built-in `local_config_cc`.
313+ # We override that priority in `.bazelrc` via
314+ # `build:macos --extra_toolchains=@local_config_apple_cc_toolchains//:all`,
315+ # which requires the repo to be visible from the root module.
316+ apple_cc_configure = use_extension ("@apple_support//crosstool:setup.bzl" , "apple_cc_configure_extension" )
317+ use_repo (apple_cc_configure , "local_config_apple_cc_toolchains" )
318+
310319node = use_extension ("@rules_nodejs//nodejs:extensions.bzl" , "node" )
311320node .toolchain (
312321 name = "nodejs" ,
You can’t perform that action at this time.
0 commit comments