Skip to content

Commit e3a22c9

Browse files
committed
Improve error when a compiler/library build fails in checktools.sh
1 parent 5753b30 commit e3a22c9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ci/docker/host-x86_64/x86_64-gnu-tools/checktools.sh

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ X_PY="$1"
88

99
# Try to test the toolstate-tracked tools and store the build/test success in the TOOLSTATE_FILE.
1010

11+
# Pre-build the compiler and the library first to output a better error message when the build
12+
# itself fails (see https://github.com/rust-lang/rust/issues/127869 for context).
13+
python3 "$X_PY" build --stage 2 compiler rustdoc
14+
1115
set +e
1216
python3 "$X_PY" test --stage 2 --no-fail-fast \
1317
src/doc/book \

0 commit comments

Comments
 (0)