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 @@ -298,7 +298,7 @@ pub(crate) fn run_aot(
298
298
metadata_module,
299
299
metadata,
300
300
windows_subsystem,
301
- linker_info : LinkerInfo :: new ( tcx) ,
301
+ linker_info : LinkerInfo :: new ( tcx, crate :: target_triple ( tcx . sess ) . to_string ( ) ) ,
302
302
crate_info : CrateInfo :: new ( tcx) ,
303
303
} ,
304
304
work_products,
Original file line number Diff line number Diff line change @@ -218,13 +218,11 @@ impl CodegenBackend for CraneliftCodegenBackend {
218
218
) -> Result < ( ) , ErrorReported > {
219
219
use rustc_codegen_ssa:: back:: link:: link_binary;
220
220
221
- let target_cpu = crate :: target_triple ( sess) . to_string ( ) ;
222
221
link_binary :: < crate :: archive:: ArArchiveBuilder < ' _ > > (
223
222
sess,
224
223
& codegen_results,
225
224
outputs,
226
225
& codegen_results. crate_name . as_str ( ) ,
227
- & target_cpu,
228
226
) ;
229
227
230
228
Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments