-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[build-script] Respect TOOLCHAINS environment variable #14202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@swift-ci please test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
…darwin xcrun toolchain.
e3bb111
to
dadb2bc
Compare
…hen deciding the xcrun toolchain for Darwin platforms, rather than hardcoding the default.
@swift-ci please test |
Build failed |
Build failed |
@swift-ci please test |
Build failed |
Build failed |
@swift-ci build toolchain |
@Rostepher Sorry! I hit the wrong button. |
@swift-ci build toolchain |
Linux Toolchain (Ubuntu 16.04) Install command |
macOS Toolchain Install command |
* Respect the TOOLCHAINS environment variable if set when deciding the darwin xcrun toolchain. * Updated test/lit.cfg to respect the TOOLCHAINS environment variable when deciding the xcrun toolchain for Darwin platforms, rather than hardcoding the default. * Fixed the default darwin xcrun toolchain logic. (cherry picked from commit a436044)
* Respect the TOOLCHAINS environment variable if set when deciding the darwin xcrun toolchain. * Updated test/lit.cfg to respect the TOOLCHAINS environment variable when deciding the xcrun toolchain for Darwin platforms, rather than hardcoding the default. * Fixed the default darwin xcrun toolchain logic. (cherry picked from commit a436044)
Purpose
This PR modifies
build-script
to respect the environment variableTOOLCHAINS
. If the--darwin-xcrun-toolchain
flag is used then the environment variable will be ignored in favor of the explicit command line option.I've also fixed the hardcoded toolchain in
test/lit.cfg
, which explicitly overwrites theTOOLCHAINS
environment variable withdefault
rather than passing theconfig.darwin_xcrun_toolchain
or examining the system environment.rdar://24795244
rdar://23397534