Skip to content

Commit 93733f9

Browse files
committed
fix x test --stage 0 core
1 parent 02bacb2 commit 93733f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2348,7 +2348,7 @@ impl Step for Crate {
23482348
// `std_cargo` actually does the wrong thing: it passes `--sysroot build/host/stage2`,
23492349
// but we want to use the force-recompile std we just built in `build/host/stage2-test-sysroot`.
23502350
// Override it.
2351-
if builder.download_rustc() {
2351+
if builder.download_rustc() && compiler.stage > 0 {
23522352
let sysroot = builder
23532353
.out
23542354
.join(compiler.host.triple)

0 commit comments

Comments
 (0)