forked from rust-lang/rust
-
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.
Merge pull request #2 from alexcrichton/azure-pipelines
Some review feedback and other misc tweaks
- Loading branch information
Showing
15 changed files
with
249 additions
and
234 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
steps: | ||
|
||
- bash: | | ||
set -e | ||
curl -f http://releases.llvm.org/7.0.0/clang+llvm-7.0.0-x86_64-apple-darwin.tar.xz | tar xJf - | ||
export CC=`pwd`/clang+llvm-7.0.0-x86_64-apple-darwin/bin/clang | ||
echo "##vso[task.setvariable variable=CC]$CC" | ||
export CXX=`pwd`/clang+llvm-7.0.0-x86_64-apple-darwin/bin/clang++ | ||
echo "##vso[task.setvariable variable=CXX]$CXX" | ||
# Configure `AR` specifically so rustbuild doesn't try to infer it as | ||
# `clang-ar` by accident. | ||
echo "##vso[task.setvariable variable=AR]ar" | ||
displayName: Install clang (OSX) | ||
condition: and(succeeded(), eq(variables['Agent.OS'], 'Darwin')) | ||
|
||
# If we're compiling for MSVC then we, like most other distribution builders, | ||
# switch to clang as the compiler. This'll allow us eventually to enable LTO | ||
# amongst LLVM and rustc. Note that we only do this on MSVC as I don't think | ||
# clang has an output mode compatible with MinGW that we need. If it does we | ||
# should switch to clang for MinGW as well! | ||
# | ||
# Note that the LLVM installer is an NSIS installer | ||
# | ||
# Original downloaded here came from | ||
# http://releases.llvm.org/7.0.0/LLVM-7.0.0-win64.exe | ||
- script: | | ||
powershell -Command "iwr -outf %TEMP%\LLVM-7.0.0-win64.exe https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror/LLVM-7.0.0-win64.exe" | ||
set CLANG_DIR=%CD%\citools\clang-rust | ||
%TEMP%\LLVM-7.0.0-win64.exe /S /NCRC /D=%CLANG_DIR% | ||
set RUST_CONFIGURE_ARGS=%RUST_CONFIGURE_ARGS% --set llvm.clang-cl=%CLANG_DIR%\bin\clang-cl.exe | ||
echo ##vso[task.setvariable variable=RUST_CONFIGURE_ARGS]%RUST_CONFIGURE_ARGS% | ||
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'), eq(variables['MINGW_URL'],'')) | ||
displayName: Install clang (Windows) | ||
|
||
# Note that we don't install clang on Linux since its compiler story is just so | ||
# different. Each container has its own toolchain configured appropriately | ||
# already. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
steps: | ||
|
||
- bash: | | ||
set -e | ||
curl -fo /usr/local/bin/sccache https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror/2018-04-02-sccache-x86_64-apple-darwin | ||
chmod +x /usr/local/bin/sccache | ||
displayName: Install sccache (OSX) | ||
condition: and(succeeded(), eq(variables['Agent.OS'], 'Darwin')) | ||
|
||
- script: | | ||
md sccache | ||
powershell -Command "iwr -outf sccache\sccache.exe https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror/2018-04-26-sccache-x86_64-pc-windows-msvc" | ||
echo ##vso[task.prependpath]%CD%\sccache | ||
displayName: Install sccache (Windows) | ||
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT')) | ||
|
||
# Note that we don't install sccache on Linux since it's installed elsewhere | ||
# through all the containers. | ||
# | ||
# FIXME: we should probably install sccache outside the containers and then | ||
# mount it inside the containers so we can centralize all installation here. |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.