@@ -910,6 +910,13 @@ impl Step for LldWrapper {
910910
911911 tool_result
912912 }
913+
914+ fn metadata ( & self ) -> Option < StepMetadata > {
915+ Some (
916+ StepMetadata :: build ( "LldWrapper" , self . target_compiler . host )
917+ . built_by ( self . build_compiler ) ,
918+ )
919+ }
913920}
914921
915922#[ derive( Debug , Clone , Hash , PartialEq , Eq ) ]
@@ -1014,9 +1021,8 @@ impl Step for RustAnalyzerProcMacroSrv {
10141021
10151022#[ derive( Debug , Clone , Hash , PartialEq , Eq ) ]
10161023pub struct LlvmBitcodeLinker {
1017- pub compiler : Compiler ,
1024+ pub build_compiler : Compiler ,
10181025 pub target : TargetSelection ,
1019- pub extra_features : Vec < String > ,
10201026}
10211027
10221028impl Step for LlvmBitcodeLinker {
@@ -1032,8 +1038,9 @@ impl Step for LlvmBitcodeLinker {
10321038
10331039 fn make_run ( run : RunConfig < ' _ > ) {
10341040 run. builder . ensure ( LlvmBitcodeLinker {
1035- compiler : run. builder . compiler ( run. builder . top_stage , run. builder . config . host_target ) ,
1036- extra_features : Vec :: new ( ) ,
1041+ build_compiler : run
1042+ . builder
1043+ . compiler ( run. builder . top_stage , run. builder . config . host_target ) ,
10371044 target : run. target ,
10381045 } ) ;
10391046 }
@@ -1043,35 +1050,22 @@ impl Step for LlvmBitcodeLinker {
10431050 instrument( level = "debug" , name = "LlvmBitcodeLinker::run" , skip_all)
10441051 ) ]
10451052 fn run ( self , builder : & Builder < ' _ > ) -> ToolBuildResult {
1046- let tool_result = builder. ensure ( ToolBuild {
1047- compiler : self . compiler ,
1053+ builder. ensure ( ToolBuild {
1054+ compiler : self . build_compiler ,
10481055 target : self . target ,
10491056 tool : "llvm-bitcode-linker" ,
10501057 mode : Mode :: ToolRustc ,
10511058 path : "src/tools/llvm-bitcode-linker" ,
10521059 source_type : SourceType :: InTree ,
1053- extra_features : self . extra_features ,
1060+ extra_features : vec ! [ ] ,
10541061 allow_features : "" ,
10551062 cargo_args : Vec :: new ( ) ,
10561063 artifact_kind : ToolArtifactKind :: Binary ,
1057- } ) ;
1064+ } )
1065+ }
10581066
1059- if tool_result. target_compiler . stage > 0 {
1060- let bindir_self_contained = builder
1061- . sysroot ( tool_result. target_compiler )
1062- . join ( format ! ( "lib/rustlib/{}/bin/self-contained" , self . target. triple) ) ;
1063- t ! ( fs:: create_dir_all( & bindir_self_contained) ) ;
1064- let bin_destination = bindir_self_contained
1065- . join ( exe ( "llvm-bitcode-linker" , tool_result. target_compiler . host ) ) ;
1066- builder. copy_link ( & tool_result. tool_path , & bin_destination, FileType :: Executable ) ;
1067- ToolBuildResult {
1068- tool_path : bin_destination,
1069- build_compiler : tool_result. build_compiler ,
1070- target_compiler : tool_result. target_compiler ,
1071- }
1072- } else {
1073- tool_result
1074- }
1067+ fn metadata ( & self ) -> Option < StepMetadata > {
1068+ Some ( StepMetadata :: build ( "LlvmBitcodeLinker" , self . target ) . built_by ( self . build_compiler ) )
10751069 }
10761070}
10771071
0 commit comments