1
Fork 0

Pass target_cpu to LinkerInfo::new instead of link_binary

This is one step towards separating the linking code from codegen backends
This commit is contained in:
bjorn3 2021-03-28 22:14:09 +02:00
parent 673c1b6e49
commit 808090eb07
7 changed files with 26 additions and 40 deletions

View file

@ -295,7 +295,7 @@ pub(super) fn run_aot(
metadata_module,
metadata,
windows_subsystem,
linker_info: LinkerInfo::new(tcx),
linker_info: LinkerInfo::new(tcx, crate::target_triple(tcx.sess).to_string()),
crate_info: CrateInfo::new(tcx),
},
work_products,