@@ -584,7 +584,7 @@ impl Step for RustdocTheme {
584584 }
585585
586586 fn make_run ( run : RunConfig < ' _ > ) {
587- let compiler = run. builder . compiler ( run. builder . top_stage , run. host ) ;
587+ let compiler = run. builder . compiler ( run. builder . top_stage , run. target ) ;
588588
589589 run. builder . ensure ( RustdocTheme { compiler } ) ;
590590 }
@@ -651,7 +651,6 @@ impl Step for RustdocJSStd {
651651
652652#[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
653653pub struct RustdocJSNotStd {
654- pub host : TargetSelection ,
655654 pub target : TargetSelection ,
656655 pub compiler : Compiler ,
657656}
@@ -666,8 +665,8 @@ impl Step for RustdocJSNotStd {
666665 }
667666
668667 fn make_run ( run : RunConfig < ' _ > ) {
669- let compiler = run. builder . compiler ( run. builder . top_stage , run. host ) ;
670- run. builder . ensure ( RustdocJSNotStd { host : run . host , target : run. target , compiler } ) ;
668+ let compiler = run. builder . compiler ( run. builder . top_stage , run. build_triple ( ) ) ;
669+ run. builder . ensure ( RustdocJSNotStd { target : run. target , compiler } ) ;
671670 }
672671
673672 fn run ( self , builder : & Builder < ' _ > ) {
@@ -688,7 +687,6 @@ impl Step for RustdocJSNotStd {
688687
689688#[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
690689pub struct RustdocUi {
691- pub host : TargetSelection ,
692690 pub target : TargetSelection ,
693691 pub compiler : Compiler ,
694692}
@@ -703,8 +701,8 @@ impl Step for RustdocUi {
703701 }
704702
705703 fn make_run ( run : RunConfig < ' _ > ) {
706- let compiler = run. builder . compiler ( run. builder . top_stage , run. host ) ;
707- run. builder . ensure ( RustdocUi { host : run . host , target : run. target , compiler } ) ;
704+ let compiler = run. builder . compiler ( run. builder . top_stage , run. build_triple ( ) ) ;
705+ run. builder . ensure ( RustdocUi { target : run. target , compiler } ) ;
708706 }
709707
710708 fn run ( self , builder : & Builder < ' _ > ) {
@@ -873,7 +871,7 @@ macro_rules! test_definitions {
873871 }
874872
875873 fn make_run( run: RunConfig <' _>) {
876- let compiler = run. builder. compiler( run. builder. top_stage, run. host ) ;
874+ let compiler = run. builder. compiler( run. builder. top_stage, run. build_triple ( ) ) ;
877875
878876 run. builder. ensure( $name { compiler, target: run. target } ) ;
879877 }
@@ -1422,7 +1420,7 @@ macro_rules! test_book {
14221420
14231421 fn make_run( run: RunConfig <' _>) {
14241422 run. builder. ensure( $name {
1425- compiler: run. builder. compiler( run. builder. top_stage, run. host ) ,
1423+ compiler: run. builder. compiler( run. builder. top_stage, run. target ) ,
14261424 } ) ;
14271425 }
14281426
@@ -1469,7 +1467,7 @@ impl Step for ErrorIndex {
14691467 // error_index_generator depends on librustdoc. Use the compiler that
14701468 // is normally used to build rustdoc for other tests (like compiletest
14711469 // tests in src/test/rustdoc) so that it shares the same artifacts.
1472- let compiler = run. builder . compiler_for ( run. builder . top_stage , run. host , run. host ) ;
1470+ let compiler = run. builder . compiler_for ( run. builder . top_stage , run. target , run. target ) ;
14731471 run. builder . ensure ( ErrorIndex { compiler } ) ;
14741472 }
14751473
@@ -1573,7 +1571,7 @@ impl Step for CrateLibrustc {
15731571
15741572 fn make_run ( run : RunConfig < ' _ > ) {
15751573 let builder = run. builder ;
1576- let compiler = builder. compiler ( builder. top_stage , run. host ) ;
1574+ let compiler = builder. compiler ( builder. top_stage , run. build_triple ( ) ) ;
15771575
15781576 for krate in builder. in_tree_crates ( "rustc-main" ) {
15791577 if krate. path . ends_with ( & run. path ) {
@@ -1620,7 +1618,7 @@ impl Step for CrateNotDefault {
16201618
16211619 fn make_run ( run : RunConfig < ' _ > ) {
16221620 let builder = run. builder ;
1623- let compiler = builder. compiler ( builder. top_stage , run. host ) ;
1621+ let compiler = builder. compiler ( builder. top_stage , run. build_triple ( ) ) ;
16241622
16251623 let test_kind = builder. kind . into ( ) ;
16261624
@@ -1668,7 +1666,7 @@ impl Step for Crate {
16681666
16691667 fn make_run ( run : RunConfig < ' _ > ) {
16701668 let builder = run. builder ;
1671- let compiler = builder. compiler ( builder. top_stage , run. host ) ;
1669+ let compiler = builder. compiler ( builder. top_stage , run. build_triple ( ) ) ;
16721670
16731671 let make = |mode : Mode , krate : & CargoCrate | {
16741672 let test_kind = builder. kind . into ( ) ;
@@ -1808,7 +1806,7 @@ impl Step for CrateRustdoc {
18081806
18091807 let test_kind = builder. kind . into ( ) ;
18101808
1811- builder. ensure ( CrateRustdoc { host : run. host , test_kind } ) ;
1809+ builder. ensure ( CrateRustdoc { host : run. target , test_kind } ) ;
18121810 }
18131811
18141812 fn run ( self , builder : & Builder < ' _ > ) {
@@ -2054,7 +2052,6 @@ impl Step for Bootstrap {
20542052#[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
20552053pub struct TierCheck {
20562054 pub compiler : Compiler ,
2057- target : TargetSelection ,
20582055}
20592056
20602057impl Step for TierCheck {
@@ -2067,18 +2064,19 @@ impl Step for TierCheck {
20672064 }
20682065
20692066 fn make_run ( run : RunConfig < ' _ > ) {
2070- let compiler = run. builder . compiler_for ( run. builder . top_stage , run. host , run. host ) ;
2071- run. builder . ensure ( TierCheck { compiler, target : run. host } ) ;
2067+ let compiler =
2068+ run. builder . compiler_for ( run. builder . top_stage , run. builder . build . build , run. target ) ;
2069+ run. builder . ensure ( TierCheck { compiler } ) ;
20722070 }
20732071
20742072 /// Tests the Platform Support page in the rustc book.
20752073 fn run ( self , builder : & Builder < ' _ > ) {
2076- builder. ensure ( compile:: Std { compiler : self . compiler , target : self . target } ) ;
2074+ builder. ensure ( compile:: Std { compiler : self . compiler , target : self . compiler . host } ) ;
20772075 let mut cargo = tool:: prepare_tool_cargo (
20782076 builder,
20792077 self . compiler ,
2080- Mode :: ToolRustc ,
2081- self . target ,
2078+ Mode :: ToolStd ,
2079+ self . compiler . host ,
20822080 "run" ,
20832081 "src/tools/tier-check" ,
20842082 SourceType :: InTree ,
0 commit comments