This commit is contained in:
bjorn3 2021-07-05 18:44:37 +02:00
parent 38585b3f01
commit a0cdbd1aa6
5 changed files with 26 additions and 28 deletions

View file

@ -291,7 +291,8 @@ pub(crate) fn run_aot(
};
// FIXME handle `-Ctarget-cpu=native`
let target_cpu = tcx.sess.opts.cg.target_cpu.as_ref().unwrap_or(&tcx.sess.target.cpu).to_owned();
let target_cpu =
tcx.sess.opts.cg.target_cpu.as_ref().unwrap_or(&tcx.sess.target.cpu).to_owned();
Box::new((
CodegenResults {
modules,