File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/bootstrap/src/core/build_steps Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -2605,8 +2605,12 @@ impl Step for Crate {
2605
2605
let mode = self . mode ;
2606
2606
2607
2607
// See [field@compile::Std::force_recompile].
2608
- builder. ensure ( compile:: Std :: force_recompile ( compiler, target) ) ;
2609
- builder. ensure ( RemoteCopyLibs { compiler, target } ) ;
2608
+ builder. ensure ( compile:: Std :: force_recompile ( compiler, compiler. host ) ) ;
2609
+
2610
+ if builder. config . build != target {
2611
+ builder. ensure ( compile:: Std :: force_recompile ( compiler, target) ) ;
2612
+ builder. ensure ( RemoteCopyLibs { compiler, target } ) ;
2613
+ }
2610
2614
2611
2615
// If we're not doing a full bootstrap but we're testing a stage2
2612
2616
// version of libstd, then what we're actually testing is the libstd
You can’t perform that action at this time.
0 commit comments