@@ -910,6 +910,13 @@ impl Step for LldWrapper {
910
910
911
911
tool_result
912
912
}
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
+ }
913
920
}
914
921
915
922
#[ derive( Debug , Clone , Hash , PartialEq , Eq ) ]
@@ -1014,9 +1021,8 @@ impl Step for RustAnalyzerProcMacroSrv {
1014
1021
1015
1022
#[ derive( Debug , Clone , Hash , PartialEq , Eq ) ]
1016
1023
pub struct LlvmBitcodeLinker {
1017
- pub compiler : Compiler ,
1024
+ pub build_compiler : Compiler ,
1018
1025
pub target : TargetSelection ,
1019
- pub extra_features : Vec < String > ,
1020
1026
}
1021
1027
1022
1028
impl Step for LlvmBitcodeLinker {
@@ -1032,8 +1038,9 @@ impl Step for LlvmBitcodeLinker {
1032
1038
1033
1039
fn make_run ( run : RunConfig < ' _ > ) {
1034
1040
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 ) ,
1037
1044
target : run. target ,
1038
1045
} ) ;
1039
1046
}
@@ -1043,35 +1050,22 @@ impl Step for LlvmBitcodeLinker {
1043
1050
instrument( level = "debug" , name = "LlvmBitcodeLinker::run" , skip_all)
1044
1051
) ]
1045
1052
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 ,
1048
1055
target : self . target ,
1049
1056
tool : "llvm-bitcode-linker" ,
1050
1057
mode : Mode :: ToolRustc ,
1051
1058
path : "src/tools/llvm-bitcode-linker" ,
1052
1059
source_type : SourceType :: InTree ,
1053
- extra_features : self . extra_features ,
1060
+ extra_features : vec ! [ ] ,
1054
1061
allow_features : "" ,
1055
1062
cargo_args : Vec :: new ( ) ,
1056
1063
artifact_kind : ToolArtifactKind :: Binary ,
1057
- } ) ;
1064
+ } )
1065
+ }
1058
1066
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 ) )
1075
1069
}
1076
1070
}
1077
1071
0 commit comments