We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
x test ui --target foo
1 parent dd2b195 commit 47ff60dCopy full SHA for 47ff60d
src/bootstrap/compile.rs
@@ -83,11 +83,11 @@ impl Step for Std {
83
let target = self.target;
84
let compiler = self.compiler;
85
86
- // These artifacts were already copied (in `impl Step for Sysroot`).
87
- // Don't recompile them.
+ // When using `download-rustc`, we already have artifacts for the host available
+ // (they were copied in `impl Step for Sysroot`). Don't recompile them.
88
// NOTE: the ABI of the beta compiler is different from the ABI of the downloaded compiler,
89
// so its artifacts can't be reused.
90
- if builder.download_rustc() && compiler.stage != 0 {
+ if builder.download_rustc() && compiler.stage != 0 && target == builder.build.build {
91
return;
92
}
93
0 commit comments