about summary refs log tree commit diff
diff options
context:
space:
mode:
authorjyn <github@jyn.dev>2023-06-03 14:01:45 -0500
committerjyn <github@jyn.dev>2023-07-05 11:04:28 -0500
commit1f0487faec16c663c23010fe641b26ee5deb9387 (patch)
tree6793d3adf9fb7e32bd60c2b31f064a57ef7349f4
parent32057b7ec369e39424798f213c95ac9406f76786 (diff)
downloadrust-1f0487faec16c663c23010fe641b26ee5deb9387.tar.gz
rust-1f0487faec16c663c23010fe641b26ee5deb9387.zip
fix `x test --stage 0 core`
-rw-r--r--src/bootstrap/test.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs
index e4cc88c64a5..ec7b9357b5a 100644
--- a/src/bootstrap/test.rs
+++ b/src/bootstrap/test.rs
@@ -2344,7 +2344,7 @@ impl Step for Crate {
                 // `std_cargo` actually does the wrong thing: it passes `--sysroot build/host/stage2`,
                 // but we want to use the force-recompile std we just built in `build/host/stage2-test-sysroot`.
                 // Override it.
-                if builder.download_rustc() {
+                if builder.download_rustc() && compiler.stage > 0 {
                     let sysroot = builder
                         .out
                         .join(compiler.host.triple)