diff options
| author | bors <bors@rust-lang.org> | 2020-01-08 05:05:06 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-01-08 05:05:06 +0000 |
| commit | f48e576756cd0c360e5522974fc8d5867b439092 (patch) | |
| tree | 445807ee0228898ec13ce7b56c9f8672b537e07f /src/ci/scripts/install-clang.sh | |
| parent | 7e393b5b3b543d355ae16c1940cf98b6c7fcb8aa (diff) | |
| parent | 39ddbeb87470071113d03fa7dfc34164180c76d6 (diff) | |
| download | rust-f48e576756cd0c360e5522974fc8d5867b439092.tar.gz rust-f48e576756cd0c360e5522974fc8d5867b439092.zip | |
Auto merge of #67733 - pietroalbini:gha-2, r=alexcrichton
GitHub Actions: preparations, part 2 This PR adds the second batch of commits in preparation for GitHub Actions: * Removed hardcoded Azure Pipelines variables from `publish_toolstate.sh` * Fixed a bug in `shared.sh`'s GitHub Actions support * Fixed binutils missing from MSYS2 on Windows 2019 (GitHub Actions-specific) * Fixed wrong sysroot in macOS 10.15 onwards (GitHub Actions-specific) This PR does **not** yet add any builders on GitHub Actions. r? @alexcrichton
Diffstat (limited to 'src/ci/scripts/install-clang.sh')
| -rwxr-xr-x | src/ci/scripts/install-clang.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ci/scripts/install-clang.sh b/src/ci/scripts/install-clang.sh index f0179994e8e..e16a4814197 100755 --- a/src/ci/scripts/install-clang.sh +++ b/src/ci/scripts/install-clang.sh @@ -14,6 +14,15 @@ if isMacOS; then ciCommandSetEnv CC "$(pwd)/clang+llvm-9.0.0-x86_64-darwin-apple/bin/clang" ciCommandSetEnv CXX "$(pwd)/clang+llvm-9.0.0-x86_64-darwin-apple/bin/clang++" + # macOS 10.15 onwards doesn't have libraries in /usr/include anymore: those + # are now located deep into the filesystem, under Xcode's own files. The + # native clang is configured to use the correct path, but our custom one + # doesn't. This sets the SDKROOT environment variable to the SDK so that + # our own clang can figure out the correct include path on its own. + if ! [[ -d "/usr/include" ]]; then + ciCommandSetEnv SDKROOT "$(xcrun --sdk macosx --show-sdk-path)" + fi + # Configure `AR` specifically so rustbuild doesn't try to infer it as # `clang-ar` by accident. ciCommandSetEnv AR "ar" |
