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 {
822
822
823
823
fn make_run ( run : RunConfig < ' _ > ) {
824
824
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 ) ) ,
826
826
target : run. target ,
827
827
} ) ;
828
828
}
@@ -834,7 +834,7 @@ impl Step for Cargo {
834
834
build_compiler : self . compiler ,
835
835
target : self . target ,
836
836
tool : "cargo" ,
837
- mode : Mode :: ToolRustc ,
837
+ mode : Mode :: ToolTarget ,
838
838
path : "src/tools/cargo" ,
839
839
source_type : SourceType :: Submodule ,
840
840
extra_features : Vec :: new ( ) ,
@@ -845,11 +845,7 @@ impl Step for Cargo {
845
845
}
846
846
847
847
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 ) )
853
849
}
854
850
}
855
851
Original file line number Diff line number Diff line change @@ -1006,11 +1006,7 @@ mod snapshot {
1006
1006
insta:: assert_snapshot!(
1007
1007
ctx. config( "build" )
1008
1008
. 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>" ) ;
1014
1010
}
1015
1011
1016
1012
#[ test]
You can’t perform that action at this time.
0 commit comments