@@ -111,10 +111,18 @@ impl Step for Std {
111
111
let compiler_to_use = builder. compiler_for ( compiler. stage , compiler. host , target) ;
112
112
if compiler_to_use != compiler {
113
113
builder. ensure ( Std :: new ( compiler_to_use, target) ) ;
114
- builder. info ( & format ! (
115
- "Uplifting stage1 library ({} -> {})" ,
116
- compiler_to_use. host, target
117
- ) ) ;
114
+ let msg = if compiler_to_use. host == target {
115
+ format ! (
116
+ "Uplifting library (stage{} -> stage{})" ,
117
+ compiler_to_use. stage, compiler. stage
118
+ )
119
+ } else {
120
+ format ! (
121
+ "Uplifting library (stage{}:{} -> stage{}:{})" ,
122
+ compiler_to_use. stage, compiler_to_use. host, compiler. stage, target
123
+ )
124
+ } ;
125
+ builder. info ( & msg) ;
118
126
119
127
// Even if we're not building std this stage, the new sysroot must
120
128
// still contain the third party objects needed by various targets.
@@ -134,13 +142,23 @@ impl Step for Std {
134
142
cargo. arg ( "-p" ) . arg ( krate) ;
135
143
}
136
144
137
- builder. info ( & format ! (
138
- "Building{} stage{} library artifacts ({} -> {})" ,
139
- crate_description( & self . crates) ,
140
- compiler. stage,
141
- & compiler. host,
142
- target,
143
- ) ) ;
145
+ let msg = if compiler. host == target {
146
+ format ! (
147
+ "Building{} stage{} library artifacts ({}) " ,
148
+ crate_description( & self . crates) ,
149
+ compiler. stage,
150
+ compiler. host
151
+ )
152
+ } else {
153
+ format ! (
154
+ "Building{} stage{} library artifacts ({} -> {})" ,
155
+ crate_description( & self . crates) ,
156
+ compiler. stage,
157
+ compiler. host,
158
+ target,
159
+ )
160
+ } ;
161
+ builder. info ( & msg) ;
144
162
run_cargo (
145
163
builder,
146
164
cargo,
@@ -438,10 +456,6 @@ impl Step for StdLink {
438
456
let compiler = self . compiler ;
439
457
let target_compiler = self . target_compiler ;
440
458
let target = self . target ;
441
- builder. info ( & format ! (
442
- "Copying stage{} library from stage{} ({} -> {} / {})" ,
443
- target_compiler. stage, compiler. stage, & compiler. host, target_compiler. host, target
444
- ) ) ;
445
459
let libdir = builder. sysroot_libdir ( target_compiler, target) ;
446
460
let hostdir = builder. sysroot_libdir ( target_compiler, compiler. host ) ;
447
461
add_to_sysroot ( builder, & libdir, & hostdir, & libstd_stamp ( builder, compiler, target) ) ;
@@ -715,8 +729,22 @@ impl Step for Rustc {
715
729
let compiler_to_use = builder. compiler_for ( compiler. stage , compiler. host , target) ;
716
730
if compiler_to_use != compiler {
717
731
builder. ensure ( Rustc :: new ( compiler_to_use, target) ) ;
718
- builder
719
- . info ( & format ! ( "Uplifting stage1 rustc ({} -> {})" , builder. config. build, target) ) ;
732
+ let msg = if compiler_to_use. host == target {
733
+ format ! (
734
+ "Uplifting rustc (stage{} -> stage{})" ,
735
+ compiler_to_use. stage,
736
+ compiler. stage + 1
737
+ )
738
+ } else {
739
+ format ! (
740
+ "Uplifting rustc (stage{}:{} -> stage{}:{})" ,
741
+ compiler_to_use. stage,
742
+ compiler_to_use. host,
743
+ compiler. stage + 1 ,
744
+ target
745
+ )
746
+ } ;
747
+ builder. info ( & msg) ;
720
748
builder. ensure ( RustcLink :: from_rustc ( self , compiler_to_use) ) ;
721
749
return ;
722
750
}
@@ -810,13 +838,24 @@ impl Step for Rustc {
810
838
cargo. arg ( "-p" ) . arg ( krate) ;
811
839
}
812
840
813
- builder. info ( & format ! (
814
- "Building{} stage{} compiler artifacts ({} -> {})" ,
815
- crate_description( & self . crates) ,
816
- compiler. stage,
817
- & compiler. host,
818
- target,
819
- ) ) ;
841
+ let msg = if compiler. host == target {
842
+ format ! (
843
+ "Building{} compiler artifacts (stage{} -> stage{})" ,
844
+ crate_description( & self . crates) ,
845
+ compiler. stage,
846
+ compiler. stage + 1
847
+ )
848
+ } else {
849
+ format ! (
850
+ "Building{} compiler artifacts (stage{}:{} -> stage{}:{})" ,
851
+ crate_description( & self . crates) ,
852
+ compiler. stage,
853
+ compiler. host,
854
+ compiler. stage + 1 ,
855
+ target,
856
+ )
857
+ } ;
858
+ builder. info ( & msg) ;
820
859
run_cargo (
821
860
builder,
822
861
cargo,
@@ -1000,10 +1039,6 @@ impl Step for RustcLink {
1000
1039
let compiler = self . compiler ;
1001
1040
let target_compiler = self . target_compiler ;
1002
1041
let target = self . target ;
1003
- builder. info ( & format ! (
1004
- "Copying stage{} rustc from stage{} ({} -> {} / {})" ,
1005
- target_compiler. stage, compiler. stage, & compiler. host, target_compiler. host, target
1006
- ) ) ;
1007
1042
add_to_sysroot (
1008
1043
builder,
1009
1044
& builder. sysroot_libdir ( target_compiler, target) ,
@@ -1077,10 +1112,15 @@ impl Step for CodegenBackend {
1077
1112
1078
1113
let tmp_stamp = out_dir. join ( ".tmp.stamp" ) ;
1079
1114
1080
- builder. info ( & format ! (
1081
- "Building stage{} codegen backend {} ({} -> {})" ,
1082
- compiler. stage, backend, & compiler. host, target
1083
- ) ) ;
1115
+ let msg = if compiler. host == target {
1116
+ format ! ( "Building stage{} codegen backend {}" , compiler. stage, backend)
1117
+ } else {
1118
+ format ! (
1119
+ "Building stage{} codegen backend {} ({} -> {})" ,
1120
+ compiler. stage, backend, compiler. host, target
1121
+ )
1122
+ } ;
1123
+ builder. info ( & msg) ;
1084
1124
let files = run_cargo ( builder, cargo, vec ! [ ] , & tmp_stamp, vec ! [ ] , false , false ) ;
1085
1125
if builder. config . dry_run ( ) {
1086
1126
return ;
@@ -1386,7 +1426,12 @@ impl Step for Assemble {
1386
1426
1387
1427
let stage = target_compiler. stage ;
1388
1428
let host = target_compiler. host ;
1389
- builder. info ( & format ! ( "Assembling stage{} compiler ({})" , stage, host) ) ;
1429
+ let msg = if build_compiler. host == host {
1430
+ format ! ( "Assembling stage{} compiler" , stage)
1431
+ } else {
1432
+ format ! ( "Assembling stage{} compiler ({})" , stage, host)
1433
+ } ;
1434
+ builder. info ( & msg) ;
1390
1435
1391
1436
// Link in all dylibs to the libdir
1392
1437
let stamp = librustc_stamp ( builder, build_compiler, target_compiler. host ) ;
0 commit comments