We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7665d87 commit 69046faCopy full SHA for 69046fa
1 file changed
src/driver/aot.rs
@@ -304,8 +304,12 @@ pub(crate) fn run_aot(
304
};
305
306
// FIXME handle `-Ctarget-cpu=native`
307
- let target_cpu =
308
- tcx.sess.opts.cg.target_cpu.as_ref().unwrap_or(&tcx.sess.target.cpu).to_owned();
+ let target_cpu = match tcx.sess.opts.cg.target_cpu {
+ Some(ref name) => name,
309
+ None => tcx.sess.target.cpu.as_ref(),
310
+ }
311
+ .to_owned();
312
+
313
Box::new((
314
CodegenResults {
315
modules,
0 commit comments