fix x test --stage 0 core

This commit is contained in:
jyn 2023-06-03 14:01:45 -05:00
parent 32057b7ec3
commit 1f0487faec

View File

@ -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)