@@ -79,6 +79,7 @@ pub fn link_binary(
7979    codegen_results :  CodegenResults , 
8080    metadata :  EncodedMetadata , 
8181    outputs :  & OutputFilenames , 
82+     codegen_backend :  & ' static  str , 
8283)  { 
8384    let  _timer = sess. timer ( "link_binary" ) ; 
8485    let  output_metadata = sess. opts . output_types . contains_key ( & OutputType :: Metadata ) ; 
@@ -154,6 +155,7 @@ pub fn link_binary(
154155                        & codegen_results, 
155156                        & metadata, 
156157                        path. as_ref ( ) , 
158+                         codegen_backend, 
157159                    ) ; 
158160                } 
159161            } 
@@ -680,6 +682,7 @@ fn link_natively(
680682    codegen_results :  & CodegenResults , 
681683    metadata :  & EncodedMetadata , 
682684    tmpdir :  & Path , 
685+     codegen_backend :  & ' static  str , 
683686)  { 
684687    info ! ( "preparing {:?} to {:?}" ,  crate_type,  out_filename) ; 
685688    let  ( linker_path,  flavor)  = linker_and_flavor ( sess) ; 
@@ -705,6 +708,7 @@ fn link_natively(
705708        codegen_results, 
706709        metadata, 
707710        self_contained_components, 
711+         codegen_backend, 
708712    ) ; 
709713
710714    linker:: disable_localization ( & mut  cmd) ; 
@@ -2208,6 +2212,7 @@ fn linker_with_args(
22082212    codegen_results :  & CodegenResults , 
22092213    metadata :  & EncodedMetadata , 
22102214    self_contained_components :  LinkSelfContainedComponents , 
2215+     codegen_backend :  & ' static  str , 
22112216)  -> Command  { 
22122217    let  self_contained_crt_objects = self_contained_components. is_crt_objects_enabled ( ) ; 
22132218    let  cmd = & mut  * super :: linker:: get_linker ( 
@@ -2216,6 +2221,7 @@ fn linker_with_args(
22162221        flavor, 
22172222        self_contained_components. are_any_components_enabled ( ) , 
22182223        & codegen_results. crate_info . target_cpu , 
2224+         codegen_backend, 
22192225    ) ; 
22202226    let  link_output_kind = link_output_kind ( sess,  crate_type) ; 
22212227
0 commit comments