Skip to content

Commit c60a58b

Browse files
committed
Attempt to debug sccache in more locations
This should hopefully add support for debugging OSX and Windows presumed sccache failures instead of just the Linux ones.
1 parent 5d0be0d commit c60a58b

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.travis.yml

+11
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ matrix:
4646
RUST_CONFIGURE_ARGS=--build=x86_64-apple-darwin
4747
SRC=.
4848
RUSTC_RETRY_LINKER_ON_SEGFAULT=1
49+
SCCACHE_ERROR_LOG=/tmp/sccache.log
50+
RUST_LOG=sccache
4951
os: osx
5052
osx_image: xcode8.2
5153
install: &osx_install_sccache >
@@ -56,6 +58,8 @@ matrix:
5658
RUST_CONFIGURE_ARGS=--build=i686-apple-darwin
5759
SRC=.
5860
RUSTC_RETRY_LINKER_ON_SEGFAULT=1
61+
SCCACHE_ERROR_LOG=/tmp/sccache.log
62+
RUST_LOG=sccache
5963
os: osx
6064
osx_image: xcode8.2
6165
install: *osx_install_sccache
@@ -66,6 +70,8 @@ matrix:
6670
SRC=.
6771
DEPLOY=1
6872
RUSTC_RETRY_LINKER_ON_SEGFAULT=1
73+
SCCACHE_ERROR_LOG=/tmp/sccache.log
74+
RUST_LOG=sccache
6975
os: osx
7076
osx_image: xcode8.2
7177
install: >
@@ -77,6 +83,8 @@ matrix:
7783
SRC=.
7884
DEPLOY=1
7985
RUSTC_RETRY_LINKER_ON_SEGFAULT=1
86+
SCCACHE_ERROR_LOG=/tmp/sccache.log
87+
RUST_LOG=sccache
8088
os: osx
8189
osx_image: xcode8.2
8290
install: *osx_install_sccache
@@ -92,6 +100,8 @@ matrix:
92100
SRC=.
93101
DEPLOY_ALT=1
94102
RUSTC_RETRY_LINKER_ON_SEGFAULT=1
103+
SCCACHE_ERROR_LOG=/tmp/sccache.log
104+
RUST_LOG=sccache
95105
os: osx
96106
osx_image: xcode8.2
97107
install: *osx_install_sccache
@@ -133,6 +143,7 @@ after_failure:
133143
df -h;
134144
du . | sort -nr | head -n100
135145
- cat obj/tmp/sccache.log
146+
- cat /tmp/sccache.log
136147

137148
# Save tagged docker images we created and load them if they're available
138149
before_cache:

appveyor.yml

+7
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,19 @@ install:
130130
- set PATH=%PATH%;%CD%\handle
131131
- handle.exe -accepteula -help
132132

133+
# Attempt to debug sccache failures
134+
- set RUST_LOG=sccache
135+
- set SCCACHE_ERROR_LOG=%CD%/sccache.log
136+
133137
test_script:
134138
- appveyor-retry sh -c 'git submodule deinit -f . && git submodule update --init'
135139
- set SRC=.
136140
- set NO_CCACHE=1
137141
- sh src/ci/run.sh
138142

143+
on_failure:
144+
- cat %CD%/sccache.log
145+
139146
cache:
140147
- "build/i686-pc-windows-msvc/llvm -> src/rustllvm/llvm-auto-clean-trigger"
141148
- "build/x86_64-pc-windows-msvc/llvm -> src/rustllvm/llvm-auto-clean-trigger"

0 commit comments

Comments
 (0)