Use nehalem instead of haswell as target cpu

This commit is contained in:
bjorn3 2020-07-25 16:15:42 +02:00
parent c1efc33941
commit e02ffdf795

View File

@ -320,7 +320,9 @@ fn build_isa(sess: &Session, enable_pic: bool) -> Box<dyn isa::TargetIsa + 'stat
let flags = settings::Flags::new(flags_builder);
let mut isa_builder = cranelift_codegen::isa::lookup(target_triple).unwrap();
isa_builder.enable("haswell").unwrap();
// Don't use "haswell", as it implies `has_lzcnt`.macOS CI is still at Ivy Bridge EP, so `lzcnt`
// is interpreted as `bsr`.
isa_builder.enable("nehalem").unwrap();
isa_builder.finish(flags)
}