Skip to content

Commit ae76ad0

Browse files
Rollup merge of rust-lang#48647 - alexcrichton:update-sccache, r=kennytm
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!
2 parents 11b3e72 + 04da856 commit ae76ad0

File tree

4 files changed

+4
-23
lines changed

4 files changed

+4
-23
lines changed

.travis.yml

+1-12
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ matrix:
3030
SRC=.
3131
DEPLOY_ALT=1
3232
RUSTC_RETRY_LINKER_ON_SEGFAULT=1
33-
SCCACHE_ERROR_LOG=/tmp/sccache.log
3433
MACOSX_DEPLOYMENT_TARGET=10.7
3534
NO_LLVM_ASSERTIONS=1
3635
NO_DEBUG_ASSERTIONS=1
@@ -50,7 +49,6 @@ matrix:
5049
RUST_CONFIGURE_ARGS="--build=x86_64-apple-darwin --enable-sanitizers --enable-profiler"
5150
SRC=.
5251
RUSTC_RETRY_LINKER_ON_SEGFAULT=1
53-
SCCACHE_ERROR_LOG=/tmp/sccache.log
5452
MACOSX_DEPLOYMENT_TARGET=10.8
5553
MACOSX_STD_DEPLOYMENT_TARGET=10.7
5654
NO_LLVM_ASSERTIONS=1
@@ -64,7 +62,6 @@ matrix:
6462
RUST_CONFIGURE_ARGS=--build=i686-apple-darwin
6563
SRC=.
6664
RUSTC_RETRY_LINKER_ON_SEGFAULT=1
67-
SCCACHE_ERROR_LOG=/tmp/sccache.log
6865
MACOSX_DEPLOYMENT_TARGET=10.8
6966
MACOSX_STD_DEPLOYMENT_TARGET=10.7
7067
NO_LLVM_ASSERTIONS=1
@@ -85,7 +82,6 @@ matrix:
8582
SRC=.
8683
DEPLOY=1
8784
RUSTC_RETRY_LINKER_ON_SEGFAULT=1
88-
SCCACHE_ERROR_LOG=/tmp/sccache.log
8985
MACOSX_DEPLOYMENT_TARGET=10.7
9086
NO_LLVM_ASSERTIONS=1
9187
NO_DEBUG_ASSERTIONS=1
@@ -99,7 +95,6 @@ matrix:
9995
SRC=.
10096
DEPLOY=1
10197
RUSTC_RETRY_LINKER_ON_SEGFAULT=1
102-
SCCACHE_ERROR_LOG=/tmp/sccache.log
10398
MACOSX_DEPLOYMENT_TARGET=10.7
10499
NO_LLVM_ASSERTIONS=1
105100
NO_DEBUG_ASSERTIONS=1
@@ -223,7 +218,7 @@ install:
223218
travis_retry brew update &&
224219
travis_retry brew install xz;
225220
fi &&
226-
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 &&
221+
travis_retry curl -fo /usr/local/bin/sccache https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror/2018-03-01-sccache-x86_64-apple-darwin &&
227222
chmod +x /usr/local/bin/sccache &&
228223
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 &&
229224
chmod +x /usr/local/bin/stamp
@@ -264,12 +259,6 @@ after_failure:
264259
df -h;
265260
du . | sort -nr | head -n100
266261
267-
# One of these is the linux sccache log, one is the OSX sccache log. Instead
268-
# of worrying about what system we are just cat both. One of these commands
269-
# will fail but that's ok, they'll both get executed.
270-
- cat obj/tmp/sccache.log
271-
- cat /tmp/sccache.log
272-
273262
# Random attempt at debugging currently. Just poking around in here to see if
274263
# anything shows up.
275264
- ls -lat $HOME/Library/Logs/DiagnosticReports/

appveyor.yml

+2-8
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ install:
146146
- set PATH=C:\Python27;%PATH%
147147

148148
# Download and install sccache
149-
- 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
150-
- mv 2017-05-12-sccache-x86_64-pc-windows-msvc sccache.exe
149+
- appveyor-retry appveyor DownloadFile https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror/2018-03-01-sccache-x86_64-pc-windows-msvc
150+
- mv 2018-03-01-sccache-x86_64-pc-windows-msvc sccache.exe
151151
- set PATH=%PATH%;%CD%
152152

153153
# Download and install ninja
@@ -170,19 +170,13 @@ install:
170170
- set PATH=%PATH%;%CD%\handle
171171
- handle.exe -accepteula -help
172172

173-
# Attempt to debug sccache failures
174-
- set SCCACHE_ERROR_LOG=%CD%/sccache.log
175-
176173
test_script:
177174
- if not exist C:\cache\rustsrc\NUL mkdir C:\cache\rustsrc
178175
- sh src/ci/init_repo.sh . /c/cache/rustsrc
179176
- set SRC=.
180177
- set NO_CCACHE=1
181178
- sh src/ci/run.sh
182179

183-
on_failure:
184-
- cat %CD%\sccache.log || exit 0
185-
186180
branches:
187181
only:
188182
- auto

src/ci/docker/run.sh

-2
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@ if [ "$SCCACHE_BUCKET" != "" ]; then
7272
args="$args --env SCCACHE_REGION"
7373
args="$args --env AWS_ACCESS_KEY_ID"
7474
args="$args --env AWS_SECRET_ACCESS_KEY"
75-
args="$args --env SCCACHE_ERROR_LOG=/tmp/sccache/sccache.log"
76-
args="$args --volume $objdir/tmp:/tmp/sccache"
7775
else
7876
mkdir -p $HOME/.cache/sccache
7977
args="$args --env SCCACHE_DIR=/sccache --volume $HOME/.cache/sccache:/sccache"

src/ci/docker/scripts/sccache.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
set -ex
1414

1515
curl -fo /usr/local/bin/sccache \
16-
https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror/2017-05-12-sccache-x86_64-unknown-linux-musl
16+
https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror/2018-03-01-sccache-x86_64-unknown-linux-musl
1717

1818
chmod +x /usr/local/bin/sccache

0 commit comments

Comments
 (0)