File tree 1 file changed +7
-2
lines changed
src/bootstrap/src/core/build_steps
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -1596,8 +1596,13 @@ NOTE: if you're sure you want to do this, please open an issue as to why. In the
1596
1596
// NOTE: Only stage 1 is special cased because we need the rustc_private artifacts to match the
1597
1597
// running compiler in stage 2 when plugins run.
1598
1598
let stage_id = if suite == "ui-fulldeps" && compiler. stage == 1 {
1599
- compiler = builder. compiler ( compiler. stage - 1 , target) ;
1600
- format ! ( "stage{}-{}" , compiler. stage + 1 , target)
1599
+ // At stage 0 (stage - 1) we are using the beta compiler. Using `self.target` can lead finding
1600
+ // an incorrect compiler path on cross-targets, as the stage 0 beta compiler is always equal
1601
+ // to `build.build` in the configuration.
1602
+ let build = builder. build . build ;
1603
+
1604
+ compiler = builder. compiler ( compiler. stage - 1 , build) ;
1605
+ format ! ( "stage{}-{}" , compiler. stage + 1 , build)
1601
1606
} else {
1602
1607
format ! ( "stage{}-{}" , compiler. stage, target)
1603
1608
} ;
You can’t perform that action at this time.
0 commit comments