File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -1047,22 +1047,18 @@ impl Step for Rustc {
1047
1047
1048
1048
// If we are building a stage3+ compiler, and full bootstrap is disabled, and we have a
1049
1049
// previous rustc available, we will uplift a compiler from a previous stage.
1050
+ // We do not allow cross-compilation uplifting here, because there it can be quite tricky
1051
+ // to figure out which stage actually built the rustc that should be uplifted.
1050
1052
if build_compiler. stage >= 2
1051
1053
&& !builder. config . full_bootstrap
1052
- && ( target == builder. host_target || builder . hosts . contains ( & target ) )
1054
+ && target == builder. host_target
1053
1055
{
1054
1056
// Here we need to determine the **build compiler** that built the stage that we will
1055
1057
// be uplifting. We cannot uplift stage 1, as it has a different ABI than stage 2+,
1056
1058
// so we always uplift the stage2 compiler (compiled with stage 1).
1057
1059
let uplift_build_compiler = builder. compiler ( 1 , build_compiler. host ) ;
1058
- let msg = if uplift_build_compiler. host == target {
1059
- format ! ( "Uplifting rustc (stage2 -> stage{stage})" )
1060
- } else {
1061
- format ! (
1062
- "Uplifting rustc (stage2:{} -> stage{stage}:{target})" ,
1063
- uplift_build_compiler. host
1064
- )
1065
- } ;
1060
+
1061
+ let msg = format ! ( "Uplifting rustc from stage2 to stage{stage})" ) ;
1066
1062
builder. info ( & msg) ;
1067
1063
1068
1064
// Here the compiler that built the rlibs (`uplift_build_compiler`) can be different
Original file line number Diff line number Diff line change @@ -705,6 +705,7 @@ mod snapshot {
705
705
[build] rustc 1 <host> -> rustc 2 <host>
706
706
[build] rustc 1 <host> -> std 1 <target1>
707
707
[build] rustc 2 <host> -> std 2 <target1>
708
+ [build] rustc 2 <host> -> std 2 <host>
708
709
[build] rustc 2 <host> -> rustc 3 <target1>
709
710
" ) ;
710
711
}
You can’t perform that action at this time.
0 commit comments