File tree Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -822,7 +822,7 @@ impl Step for Cargo {
822822
823823 fn make_run ( run : RunConfig < ' _ > ) {
824824 run. builder . ensure ( Cargo {
825- compiler : run . builder . compiler ( run. builder . top_stage , run. builder . config . host_target ) ,
825+ compiler : get_tool_target_compiler ( run. builder , ToolTargetBuildMode :: Build ( run. target ) ) ,
826826 target : run. target ,
827827 } ) ;
828828 }
@@ -834,7 +834,7 @@ impl Step for Cargo {
834834 build_compiler : self . compiler ,
835835 target : self . target ,
836836 tool : "cargo" ,
837- mode : Mode :: ToolRustc ,
837+ mode : Mode :: ToolTarget ,
838838 path : "src/tools/cargo" ,
839839 source_type : SourceType :: Submodule ,
840840 extra_features : Vec :: new ( ) ,
@@ -845,11 +845,7 @@ impl Step for Cargo {
845845 }
846846
847847 fn metadata ( & self ) -> Option < StepMetadata > {
848- // FIXME: fix staging logic
849- Some (
850- StepMetadata :: build ( "cargo" , self . target )
851- . built_by ( self . compiler . with_stage ( self . compiler . stage - 1 ) ) ,
852- )
848+ Some ( StepMetadata :: build ( "cargo" , self . target ) . built_by ( self . compiler ) )
853849 }
854850}
855851
Original file line number Diff line number Diff line change @@ -1006,11 +1006,7 @@ mod snapshot {
10061006 insta:: assert_snapshot!(
10071007 ctx. config( "build" )
10081008 . paths( & [ "cargo" ] )
1009- . render_steps( ) , @r"
1010- [build] llvm <host>
1011- [build] rustc 0 <host> -> rustc 1 <host>
1012- [build] rustc 1 <host> -> cargo 2 <host>
1013- " ) ;
1009+ . render_steps( ) , @"[build] rustc 0 <host> -> cargo 1 <host>" ) ;
10141010 }
10151011
10161012 #[ test]
You can’t perform that action at this time.
0 commit comments