mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 17:18:32 +03:00
Fix x test ui --target foo when download-rustc is enabled
Previously, we would never build the target std, only the host std.
This commit is contained in:
@@ -83,11 +83,11 @@ fn run(self, builder: &Builder<'_>) {
|
||||
let target = self.target;
|
||||
let compiler = self.compiler;
|
||||
|
||||
// These artifacts were already copied (in `impl Step for Sysroot`).
|
||||
// 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.
|
||||
// NOTE: the ABI of the beta compiler is different from the ABI of the downloaded compiler,
|
||||
// so its artifacts can't be reused.
|
||||
if builder.download_rustc() && compiler.stage != 0 {
|
||||
if builder.download_rustc() && compiler.stage != 0 && target == builder.build.build {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user