diff options
| author | Jakub Beránek <berykubik@gmail.com> | 2024-07-18 21:57:56 +0200 |
|---|---|---|
| committer | Jakub Beránek <berykubik@gmail.com> | 2024-07-19 14:37:31 +0200 |
| commit | e3a22c9f617c64815d4d3d737a4441166cf00d60 (patch) | |
| tree | 74b096d955782d78a74742d34200498ae3e74ca7 | |
| parent | 5753b3067662e17a69b54b9418dbc37b73769a84 (diff) | |
| download | rust-e3a22c9f617c64815d4d3d737a4441166cf00d60.tar.gz rust-e3a22c9f617c64815d4d3d737a4441166cf00d60.zip | |
Improve error when a compiler/library build fails in `checktools.sh`
| -rwxr-xr-x | src/ci/docker/host-x86_64/x86_64-gnu-tools/checktools.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ci/docker/host-x86_64/x86_64-gnu-tools/checktools.sh b/src/ci/docker/host-x86_64/x86_64-gnu-tools/checktools.sh index 53b4583166d..a5a5acc333b 100755 --- a/src/ci/docker/host-x86_64/x86_64-gnu-tools/checktools.sh +++ b/src/ci/docker/host-x86_64/x86_64-gnu-tools/checktools.sh @@ -8,6 +8,10 @@ X_PY="$1" # Try to test the toolstate-tracked tools and store the build/test success in the TOOLSTATE_FILE. +# Pre-build the compiler and the library first to output a better error message when the build +# itself fails (see https://github.com/rust-lang/rust/issues/127869 for context). +python3 "$X_PY" build --stage 2 compiler rustdoc + set +e python3 "$X_PY" test --stage 2 --no-fail-fast \ src/doc/book \ |
