@@ -79,6 +79,7 @@ pub fn link_binary(
79
79
codegen_results : CodegenResults ,
80
80
metadata : EncodedMetadata ,
81
81
outputs : & OutputFilenames ,
82
+ codegen_backend : & ' static str ,
82
83
) {
83
84
let _timer = sess. timer ( "link_binary" ) ;
84
85
let output_metadata = sess. opts . output_types . contains_key ( & OutputType :: Metadata ) ;
@@ -154,6 +155,7 @@ pub fn link_binary(
154
155
& codegen_results,
155
156
& metadata,
156
157
path. as_ref ( ) ,
158
+ codegen_backend,
157
159
) ;
158
160
}
159
161
}
@@ -680,6 +682,7 @@ fn link_natively(
680
682
codegen_results : & CodegenResults ,
681
683
metadata : & EncodedMetadata ,
682
684
tmpdir : & Path ,
685
+ codegen_backend : & ' static str ,
683
686
) {
684
687
info ! ( "preparing {:?} to {:?}" , crate_type, out_filename) ;
685
688
let ( linker_path, flavor) = linker_and_flavor ( sess) ;
@@ -705,6 +708,7 @@ fn link_natively(
705
708
codegen_results,
706
709
metadata,
707
710
self_contained_components,
711
+ codegen_backend,
708
712
) ;
709
713
710
714
linker:: disable_localization ( & mut cmd) ;
@@ -2208,6 +2212,7 @@ fn linker_with_args(
2208
2212
codegen_results : & CodegenResults ,
2209
2213
metadata : & EncodedMetadata ,
2210
2214
self_contained_components : LinkSelfContainedComponents ,
2215
+ codegen_backend : & ' static str ,
2211
2216
) -> Command {
2212
2217
let self_contained_crt_objects = self_contained_components. is_crt_objects_enabled ( ) ;
2213
2218
let cmd = & mut * super :: linker:: get_linker (
@@ -2216,6 +2221,7 @@ fn linker_with_args(
2216
2221
flavor,
2217
2222
self_contained_components. are_any_components_enabled ( ) ,
2218
2223
& codegen_results. crate_info . target_cpu ,
2224
+ codegen_backend,
2219
2225
) ;
2220
2226
let link_output_kind = link_output_kind ( sess, crate_type) ;
2221
2227
0 commit comments