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 @@ -295,7 +295,7 @@ pub(super) fn run_aot(
295295 metadata_module,
296296 metadata,
297297 windows_subsystem,
298- linker_info : LinkerInfo :: new ( tcx) ,
298+ linker_info : LinkerInfo :: new ( tcx, crate :: target_triple ( tcx . sess ) . to_string ( ) ) ,
299299 crate_info : CrateInfo :: new ( tcx) ,
300300 } ,
301301 work_products,
Original file line number Diff line number Diff line change @@ -267,13 +267,11 @@ impl CodegenBackend for CraneliftCodegenBackend {
267267 ) -> Result < ( ) , ErrorReported > {
268268 use rustc_codegen_ssa:: back:: link:: link_binary;
269269
270- let target_cpu = crate :: target_triple ( sess) . to_string ( ) ;
271270 link_binary :: < crate :: archive:: ArArchiveBuilder < ' _ > > (
272271 sess,
273272 & codegen_results,
274273 outputs,
275274 & codegen_results. crate_name . as_str ( ) ,
276- & target_cpu,
277275 ) ;
278276
279277 Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments