File tree 2 files changed +1
-3
lines changed
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(
295
295
metadata_module,
296
296
metadata,
297
297
windows_subsystem,
298
- linker_info : LinkerInfo :: new ( tcx) ,
298
+ linker_info : LinkerInfo :: new ( tcx, crate :: target_triple ( tcx . sess ) . to_string ( ) ) ,
299
299
crate_info : CrateInfo :: new ( tcx) ,
300
300
} ,
301
301
work_products,
Original file line number Diff line number Diff line change @@ -267,13 +267,11 @@ impl CodegenBackend for CraneliftCodegenBackend {
267
267
) -> Result < ( ) , ErrorReported > {
268
268
use rustc_codegen_ssa:: back:: link:: link_binary;
269
269
270
- let target_cpu = crate :: target_triple ( sess) . to_string ( ) ;
271
270
link_binary :: < crate :: archive:: ArArchiveBuilder < ' _ > > (
272
271
sess,
273
272
& codegen_results,
274
273
outputs,
275
274
& codegen_results. crate_name . as_str ( ) ,
276
- & target_cpu,
277
275
) ;
278
276
279
277
Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments