@@ -209,7 +209,7 @@ impl Step for TheBook {
209209
210210 fn make_run ( run : RunConfig < ' _ > ) {
211211 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 ) ,
213213 target : run. target ,
214214 } ) ;
215215 }
@@ -329,7 +329,7 @@ impl Step for Standalone {
329329
330330 fn make_run ( run : RunConfig < ' _ > ) {
331331 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 ) ,
333333 target : run. target ,
334334 } ) ;
335335 }
@@ -431,7 +431,7 @@ impl Step for Releases {
431431
432432 fn make_run ( run : RunConfig < ' _ > ) {
433433 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 ) ,
435435 target : run. target ,
436436 } ) ;
437437 }
@@ -449,7 +449,7 @@ impl Step for Releases {
449449 t ! ( fs:: create_dir_all( & out) ) ;
450450
451451 builder. ensure ( Standalone {
452- compiler : builder. compiler ( builder. top_stage , builder. config . build ) ,
452+ compiler : builder. compiler ( builder. top_stage , builder. config . host_target ) ,
453453 target,
454454 } ) ;
455455
@@ -700,7 +700,7 @@ fn doc_std(
700700 extra_args : & [ & str ] ,
701701 requested_crates : & [ String ] ,
702702) {
703- let compiler = builder. compiler ( stage, builder. config . build ) ;
703+ let compiler = builder. compiler ( stage, builder. config . host_target ) ;
704704
705705 let target_doc_dir_name = if format == DocumentationFormat :: Json { "json-doc" } else { "doc" } ;
706706 let target_dir = builder. stage_out ( compiler, Mode :: Std ) . join ( target) . join ( target_doc_dir_name) ;
@@ -803,8 +803,8 @@ impl Step for Rustc {
803803
804804 // Build the standard library, so that proc-macros can use it.
805805 // (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 ) ) ;
808808
809809 let _guard = builder. msg_sysroot_tool (
810810 Kind :: Doc ,
@@ -946,7 +946,7 @@ macro_rules! tool_doc {
946946 let out = builder. compiler_doc_out( target) ;
947947 t!( fs:: create_dir_all( & out) ) ;
948948
949- let compiler = builder. compiler( stage, builder. config. build ) ;
949+ let compiler = builder. compiler( stage, builder. config. host_target ) ;
950950 builder. ensure( compile:: Std :: new( compiler, target) ) ;
951951
952952 if true $( && $rustc_tool) ? {
@@ -1174,7 +1174,7 @@ impl Step for RustcBook {
11741174
11751175 fn make_run ( run : RunConfig < ' _ > ) {
11761176 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 ) ,
11781178 target : run. target ,
11791179 validate : false ,
11801180 } ) ;
@@ -1261,7 +1261,7 @@ impl Step for Reference {
12611261
12621262 fn make_run ( run : RunConfig < ' _ > ) {
12631263 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 ) ,
12651265 target : run. target ,
12661266 } ) ;
12671267 }
@@ -1272,7 +1272,7 @@ impl Step for Reference {
12721272
12731273 // This is needed for generating links to the standard library using
12741274 // 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 ) ) ;
12761276
12771277 // Run rustbook/mdbook to generate the HTML pages.
12781278 builder. ensure ( RustbookSrc {
0 commit comments