From 1f0487faec16c663c23010fe641b26ee5deb9387 Mon Sep 17 00:00:00 2001 From: jyn Date: Sat, 3 Jun 2023 14:01:45 -0500 Subject: [PATCH] fix `x test --stage 0 core` --- src/bootstrap/test.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs index e4cc88c64a59..ec7b9357b5aa 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)