mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
Update sccache to its master branch
Ideally I'd like to soon enable sccache for rustbuild itself and some of the stage0 tools, but for that to work we'll need some better Rust support than the pretty old version we were previously using!
This commit is contained in:
parent
097efa9a99
commit
64f7e11fc3
13
.travis.yml
13
.travis.yml
@ -30,7 +30,6 @@ matrix:
|
|||||||
SRC=.
|
SRC=.
|
||||||
DEPLOY_ALT=1
|
DEPLOY_ALT=1
|
||||||
RUSTC_RETRY_LINKER_ON_SEGFAULT=1
|
RUSTC_RETRY_LINKER_ON_SEGFAULT=1
|
||||||
SCCACHE_ERROR_LOG=/tmp/sccache.log
|
|
||||||
MACOSX_DEPLOYMENT_TARGET=10.7
|
MACOSX_DEPLOYMENT_TARGET=10.7
|
||||||
NO_LLVM_ASSERTIONS=1
|
NO_LLVM_ASSERTIONS=1
|
||||||
NO_DEBUG_ASSERTIONS=1
|
NO_DEBUG_ASSERTIONS=1
|
||||||
@ -50,7 +49,6 @@ matrix:
|
|||||||
RUST_CONFIGURE_ARGS="--build=x86_64-apple-darwin --enable-sanitizers --enable-profiler"
|
RUST_CONFIGURE_ARGS="--build=x86_64-apple-darwin --enable-sanitizers --enable-profiler"
|
||||||
SRC=.
|
SRC=.
|
||||||
RUSTC_RETRY_LINKER_ON_SEGFAULT=1
|
RUSTC_RETRY_LINKER_ON_SEGFAULT=1
|
||||||
SCCACHE_ERROR_LOG=/tmp/sccache.log
|
|
||||||
MACOSX_DEPLOYMENT_TARGET=10.8
|
MACOSX_DEPLOYMENT_TARGET=10.8
|
||||||
MACOSX_STD_DEPLOYMENT_TARGET=10.7
|
MACOSX_STD_DEPLOYMENT_TARGET=10.7
|
||||||
NO_LLVM_ASSERTIONS=1
|
NO_LLVM_ASSERTIONS=1
|
||||||
@ -64,7 +62,6 @@ matrix:
|
|||||||
RUST_CONFIGURE_ARGS=--build=i686-apple-darwin
|
RUST_CONFIGURE_ARGS=--build=i686-apple-darwin
|
||||||
SRC=.
|
SRC=.
|
||||||
RUSTC_RETRY_LINKER_ON_SEGFAULT=1
|
RUSTC_RETRY_LINKER_ON_SEGFAULT=1
|
||||||
SCCACHE_ERROR_LOG=/tmp/sccache.log
|
|
||||||
MACOSX_DEPLOYMENT_TARGET=10.8
|
MACOSX_DEPLOYMENT_TARGET=10.8
|
||||||
MACOSX_STD_DEPLOYMENT_TARGET=10.7
|
MACOSX_STD_DEPLOYMENT_TARGET=10.7
|
||||||
NO_LLVM_ASSERTIONS=1
|
NO_LLVM_ASSERTIONS=1
|
||||||
@ -85,7 +82,6 @@ matrix:
|
|||||||
SRC=.
|
SRC=.
|
||||||
DEPLOY=1
|
DEPLOY=1
|
||||||
RUSTC_RETRY_LINKER_ON_SEGFAULT=1
|
RUSTC_RETRY_LINKER_ON_SEGFAULT=1
|
||||||
SCCACHE_ERROR_LOG=/tmp/sccache.log
|
|
||||||
MACOSX_DEPLOYMENT_TARGET=10.7
|
MACOSX_DEPLOYMENT_TARGET=10.7
|
||||||
NO_LLVM_ASSERTIONS=1
|
NO_LLVM_ASSERTIONS=1
|
||||||
NO_DEBUG_ASSERTIONS=1
|
NO_DEBUG_ASSERTIONS=1
|
||||||
@ -99,7 +95,6 @@ matrix:
|
|||||||
SRC=.
|
SRC=.
|
||||||
DEPLOY=1
|
DEPLOY=1
|
||||||
RUSTC_RETRY_LINKER_ON_SEGFAULT=1
|
RUSTC_RETRY_LINKER_ON_SEGFAULT=1
|
||||||
SCCACHE_ERROR_LOG=/tmp/sccache.log
|
|
||||||
MACOSX_DEPLOYMENT_TARGET=10.7
|
MACOSX_DEPLOYMENT_TARGET=10.7
|
||||||
NO_LLVM_ASSERTIONS=1
|
NO_LLVM_ASSERTIONS=1
|
||||||
NO_DEBUG_ASSERTIONS=1
|
NO_DEBUG_ASSERTIONS=1
|
||||||
@ -227,7 +222,7 @@ install:
|
|||||||
travis_retry brew update &&
|
travis_retry brew update &&
|
||||||
travis_retry brew install xz;
|
travis_retry brew install xz;
|
||||||
fi &&
|
fi &&
|
||||||
travis_retry curl -fo /usr/local/bin/sccache https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror/2017-05-12-sccache-x86_64-apple-darwin &&
|
travis_retry 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 &&
|
chmod +x /usr/local/bin/sccache &&
|
||||||
travis_retry curl -fo /usr/local/bin/stamp https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror/2017-03-17-stamp-x86_64-apple-darwin &&
|
travis_retry curl -fo /usr/local/bin/stamp https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror/2017-03-17-stamp-x86_64-apple-darwin &&
|
||||||
chmod +x /usr/local/bin/stamp
|
chmod +x /usr/local/bin/stamp
|
||||||
@ -268,12 +263,6 @@ after_failure:
|
|||||||
df -h;
|
df -h;
|
||||||
du . | sort -nr | head -n100
|
du . | sort -nr | head -n100
|
||||||
|
|
||||||
# One of these is the linux sccache log, one is the OSX sccache log. Instead
|
|
||||||
# of worrying about what system we are just cat both. One of these commands
|
|
||||||
# will fail but that's ok, they'll both get executed.
|
|
||||||
- cat obj/tmp/sccache.log
|
|
||||||
- cat /tmp/sccache.log
|
|
||||||
|
|
||||||
# Random attempt at debugging currently. Just poking around in here to see if
|
# Random attempt at debugging currently. Just poking around in here to see if
|
||||||
# anything shows up.
|
# anything shows up.
|
||||||
- ls -lat $HOME/Library/Logs/DiagnosticReports/
|
- ls -lat $HOME/Library/Logs/DiagnosticReports/
|
||||||
|
10
appveyor.yml
10
appveyor.yml
@ -152,8 +152,8 @@ install:
|
|||||||
- set PATH=C:\Python27;%PATH%
|
- set PATH=C:\Python27;%PATH%
|
||||||
|
|
||||||
# Download and install sccache
|
# Download and install sccache
|
||||||
- appveyor-retry appveyor DownloadFile https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror/2017-05-12-sccache-x86_64-pc-windows-msvc
|
- appveyor-retry appveyor DownloadFile https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror/2018-04-02-sccache-x86_64-pc-windows-msvc
|
||||||
- mv 2017-05-12-sccache-x86_64-pc-windows-msvc sccache.exe
|
- mv 2018-04-02-sccache-x86_64-pc-windows-msvc sccache.exe
|
||||||
- set PATH=%PATH%;%CD%
|
- set PATH=%PATH%;%CD%
|
||||||
|
|
||||||
# Download and install ninja
|
# Download and install ninja
|
||||||
@ -176,9 +176,6 @@ install:
|
|||||||
- set PATH=%PATH%;%CD%\handle
|
- set PATH=%PATH%;%CD%\handle
|
||||||
- handle.exe -accepteula -help
|
- handle.exe -accepteula -help
|
||||||
|
|
||||||
# Attempt to debug sccache failures
|
|
||||||
- set SCCACHE_ERROR_LOG=%CD%/sccache.log
|
|
||||||
|
|
||||||
test_script:
|
test_script:
|
||||||
- if not exist C:\cache\rustsrc\NUL mkdir C:\cache\rustsrc
|
- if not exist C:\cache\rustsrc\NUL mkdir C:\cache\rustsrc
|
||||||
- sh src/ci/init_repo.sh . /c/cache/rustsrc
|
- sh src/ci/init_repo.sh . /c/cache/rustsrc
|
||||||
@ -186,9 +183,6 @@ test_script:
|
|||||||
- set NO_CCACHE=1
|
- set NO_CCACHE=1
|
||||||
- sh src/ci/run.sh
|
- sh src/ci/run.sh
|
||||||
|
|
||||||
on_failure:
|
|
||||||
- cat %CD%\sccache.log || exit 0
|
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
- auto
|
- auto
|
||||||
|
@ -66,6 +66,14 @@ RUN env \
|
|||||||
bash musl.sh mipsel && \
|
bash musl.sh mipsel && \
|
||||||
rm -rf /build/*
|
rm -rf /build/*
|
||||||
|
|
||||||
|
# FIXME(mozilla/sccache#235) this shouldn't be necessary but is currently
|
||||||
|
# necessary to disambiguate the mips compiler with the mipsel compiler. We want
|
||||||
|
# to give these two wrapper scripts (currently identical ones) different hashes
|
||||||
|
# to ensure that sccache understands that they're different compilers.
|
||||||
|
RUN \
|
||||||
|
echo "# a" >> /usr/local/mips-linux-musl/bin/mips-openwrt-linux-musl-wrapper.sh && \
|
||||||
|
echo "# b" >> /usr/local/mipsel-linux-musl/bin/mipsel-openwrt-linux-musl-wrapper.sh
|
||||||
|
|
||||||
ENV TARGETS=asmjs-unknown-emscripten
|
ENV TARGETS=asmjs-unknown-emscripten
|
||||||
ENV TARGETS=$TARGETS,wasm32-unknown-emscripten
|
ENV TARGETS=$TARGETS,wasm32-unknown-emscripten
|
||||||
ENV TARGETS=$TARGETS,x86_64-rumprun-netbsd
|
ENV TARGETS=$TARGETS,x86_64-rumprun-netbsd
|
||||||
|
@ -104,8 +104,6 @@ if [ "$SCCACHE_BUCKET" != "" ]; then
|
|||||||
args="$args --env SCCACHE_REGION"
|
args="$args --env SCCACHE_REGION"
|
||||||
args="$args --env AWS_ACCESS_KEY_ID"
|
args="$args --env AWS_ACCESS_KEY_ID"
|
||||||
args="$args --env AWS_SECRET_ACCESS_KEY"
|
args="$args --env AWS_SECRET_ACCESS_KEY"
|
||||||
args="$args --env SCCACHE_ERROR_LOG=/tmp/sccache/sccache.log"
|
|
||||||
args="$args --volume $objdir/tmp:/tmp/sccache"
|
|
||||||
else
|
else
|
||||||
mkdir -p $HOME/.cache/sccache
|
mkdir -p $HOME/.cache/sccache
|
||||||
args="$args --env SCCACHE_DIR=/sccache --volume $HOME/.cache/sccache:/sccache"
|
args="$args --env SCCACHE_DIR=/sccache --volume $HOME/.cache/sccache:/sccache"
|
||||||
|
@ -13,6 +13,6 @@
|
|||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
curl -fo /usr/local/bin/sccache \
|
curl -fo /usr/local/bin/sccache \
|
||||||
https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror/2017-05-12-sccache-x86_64-unknown-linux-musl
|
https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror/2018-04-02-sccache-x86_64-unknown-linux-musl
|
||||||
|
|
||||||
chmod +x /usr/local/bin/sccache
|
chmod +x /usr/local/bin/sccache
|
||||||
|
Loading…
Reference in New Issue
Block a user