File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -298,7 +298,7 @@ pub(crate) fn run_aot(
298298 metadata_module,
299299 metadata,
300300 windows_subsystem,
301- linker_info : LinkerInfo :: new ( tcx) ,
301+ linker_info : LinkerInfo :: new ( tcx, crate :: target_triple ( tcx . sess ) . to_string ( ) ) ,
302302 crate_info : CrateInfo :: new ( tcx) ,
303303 } ,
304304 work_products,
Original file line number Diff line number Diff line change @@ -218,13 +218,11 @@ impl CodegenBackend for CraneliftCodegenBackend {
218218 ) -> Result < ( ) , ErrorReported > {
219219 use rustc_codegen_ssa:: back:: link:: link_binary;
220220
221- let target_cpu = crate :: target_triple ( sess) . to_string ( ) ;
222221 link_binary :: < crate :: archive:: ArArchiveBuilder < ' _ > > (
223222 sess,
224223 & codegen_results,
225224 outputs,
226225 & codegen_results. crate_name . as_str ( ) ,
227- & target_cpu,
228226 ) ;
229227
230228 Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments