Skip to content

Commit 1f0487f

Browse files
committed
fix x test --stage 0 core
1 parent 32057b7 commit 1f0487f

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
@@ -2344,7 +2344,7 @@ impl Step for Crate {
23442344
// `std_cargo` actually does the wrong thing: it passes `--sysroot build/host/stage2`,
23452345
// but we want to use the force-recompile std we just built in `build/host/stage2-test-sysroot`.
23462346
// Override it.
2347-
if builder.download_rustc() {
2347+
if builder.download_rustc() && compiler.stage > 0 {
23482348
let sysroot = builder
23492349
.out
23502350
.join(compiler.host.triple)

0 commit comments

Comments
 (0)