@@ -209,7 +209,7 @@ impl Step for TheBook {
209
209
210
210
fn make_run ( run : RunConfig < ' _ > ) {
211
211
run. builder . ensure ( TheBook {
212
- compiler : run. builder . compiler ( run. builder . top_stage , run. builder . config . build ) ,
212
+ compiler : run. builder . compiler ( run. builder . top_stage , run. builder . config . host_target ) ,
213
213
target : run. target ,
214
214
} ) ;
215
215
}
@@ -329,7 +329,7 @@ impl Step for Standalone {
329
329
330
330
fn make_run ( run : RunConfig < ' _ > ) {
331
331
run. builder . ensure ( Standalone {
332
- compiler : run. builder . compiler ( run. builder . top_stage , run. builder . config . build ) ,
332
+ compiler : run. builder . compiler ( run. builder . top_stage , run. builder . config . host_target ) ,
333
333
target : run. target ,
334
334
} ) ;
335
335
}
@@ -431,7 +431,7 @@ impl Step for Releases {
431
431
432
432
fn make_run ( run : RunConfig < ' _ > ) {
433
433
run. builder . ensure ( Releases {
434
- compiler : run. builder . compiler ( run. builder . top_stage , run. builder . config . build ) ,
434
+ compiler : run. builder . compiler ( run. builder . top_stage , run. builder . config . host_target ) ,
435
435
target : run. target ,
436
436
} ) ;
437
437
}
@@ -449,7 +449,7 @@ impl Step for Releases {
449
449
t ! ( fs:: create_dir_all( & out) ) ;
450
450
451
451
builder. ensure ( Standalone {
452
- compiler : builder. compiler ( builder. top_stage , builder. config . build ) ,
452
+ compiler : builder. compiler ( builder. top_stage , builder. config . host_target ) ,
453
453
target,
454
454
} ) ;
455
455
@@ -700,7 +700,7 @@ fn doc_std(
700
700
extra_args : & [ & str ] ,
701
701
requested_crates : & [ String ] ,
702
702
) {
703
- let compiler = builder. compiler ( stage, builder. config . build ) ;
703
+ let compiler = builder. compiler ( stage, builder. config . host_target ) ;
704
704
705
705
let target_doc_dir_name = if format == DocumentationFormat :: Json { "json-doc" } else { "doc" } ;
706
706
let target_dir = builder. stage_out ( compiler, Mode :: Std ) . join ( target) . join ( target_doc_dir_name) ;
@@ -803,8 +803,8 @@ impl Step for Rustc {
803
803
804
804
// Build the standard library, so that proc-macros can use it.
805
805
// (Normally, only the metadata would be necessary, but proc-macros are special since they run at compile-time.)
806
- let compiler = builder. compiler ( stage, builder. config . build ) ;
807
- builder. ensure ( compile:: Std :: new ( compiler, builder. config . build ) ) ;
806
+ let compiler = builder. compiler ( stage, builder. config . host_target ) ;
807
+ builder. ensure ( compile:: Std :: new ( compiler, builder. config . host_target ) ) ;
808
808
809
809
let _guard = builder. msg_sysroot_tool (
810
810
Kind :: Doc ,
@@ -946,7 +946,7 @@ macro_rules! tool_doc {
946
946
let out = builder. compiler_doc_out( target) ;
947
947
t!( fs:: create_dir_all( & out) ) ;
948
948
949
- let compiler = builder. compiler( stage, builder. config. build ) ;
949
+ let compiler = builder. compiler( stage, builder. config. host_target ) ;
950
950
builder. ensure( compile:: Std :: new( compiler, target) ) ;
951
951
952
952
if true $( && $rustc_tool) ? {
@@ -1174,7 +1174,7 @@ impl Step for RustcBook {
1174
1174
1175
1175
fn make_run ( run : RunConfig < ' _ > ) {
1176
1176
run. builder . ensure ( RustcBook {
1177
- compiler : run. builder . compiler ( run. builder . top_stage , run. builder . config . build ) ,
1177
+ compiler : run. builder . compiler ( run. builder . top_stage , run. builder . config . host_target ) ,
1178
1178
target : run. target ,
1179
1179
validate : false ,
1180
1180
} ) ;
@@ -1261,7 +1261,7 @@ impl Step for Reference {
1261
1261
1262
1262
fn make_run ( run : RunConfig < ' _ > ) {
1263
1263
run. builder . ensure ( Reference {
1264
- compiler : run. builder . compiler ( run. builder . top_stage , run. builder . config . build ) ,
1264
+ compiler : run. builder . compiler ( run. builder . top_stage , run. builder . config . host_target ) ,
1265
1265
target : run. target ,
1266
1266
} ) ;
1267
1267
}
@@ -1272,7 +1272,7 @@ impl Step for Reference {
1272
1272
1273
1273
// This is needed for generating links to the standard library using
1274
1274
// the mdbook-spec plugin.
1275
- builder. ensure ( compile:: Std :: new ( self . compiler , builder. config . build ) ) ;
1275
+ builder. ensure ( compile:: Std :: new ( self . compiler , builder. config . host_target ) ) ;
1276
1276
1277
1277
// Run rustbook/mdbook to generate the HTML pages.
1278
1278
builder. ensure ( RustbookSrc {
0 commit comments