We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c9f8f34 + 5aece7f commit 9d70954Copy full SHA for 9d70954
src/bootstrap/src/core/build_steps/test.rs
@@ -2605,8 +2605,12 @@ impl Step for Crate {
2605
let mode = self.mode;
2606
2607
// See [field@compile::Std::force_recompile].
2608
- builder.ensure(compile::Std::force_recompile(compiler, target));
2609
- builder.ensure(RemoteCopyLibs { compiler, target });
+ builder.ensure(compile::Std::force_recompile(compiler, compiler.host));
+
2610
+ if builder.config.build != target {
2611
+ builder.ensure(compile::Std::force_recompile(compiler, target));
2612
+ builder.ensure(RemoteCopyLibs { compiler, target });
2613
+ }
2614
2615
// If we're not doing a full bootstrap but we're testing a stage2
2616
// version of libstd, then what we're actually testing is the libstd
0 commit comments