forked from bazelbuild/bazel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make split cc_configure work on Darwin with only CLT installed
Fixes bazelbuild#8479. To keep this backwards compatible we have to detect xcode early in the Bazel build (even when no C++ is being built). In cases where user knows there is xcode, or when they know it won't be needed, I'm adding environment variable `BAZEL_USE_XCODE_TOOLCHAIN`. When set to `1`, Bazel will not try to detect xcode, it will assume it is there. Makes bazelbuild#6926 a little bit more complicated. RELNOTES: `BAZEL_USE_XCODE_TOOLCHAIN=1` tells Bazel not to look for Xcode to decide whether to enable toolchains for Apple rules, but to assume Xcode is available. Can be also used when building on Darwin and no C++ or ObjC is being built, so there is no need to detect Xcode.
- Loading branch information
Showing
2 changed files
with
26 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters