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 {
26052605 let mode = self . mode ;
26062606
26072607 // 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+ }
26102614
26112615 // If we're not doing a full bootstrap but we're testing a stage2
26122616 // version of libstd, then what we're actually testing is the libstd
You can’t perform that action at this time.
0 commit comments