Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit e02ffdf

Browse files
committed
Use nehalem instead of haswell as target cpu
1 parent c1efc33 commit e02ffdf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,9 @@ fn build_isa(sess: &Session, enable_pic: bool) -> Box<dyn isa::TargetIsa + 'stat
320320
let flags = settings::Flags::new(flags_builder);
321321

322322
let mut isa_builder = cranelift_codegen::isa::lookup(target_triple).unwrap();
323-
isa_builder.enable("haswell").unwrap();
323+
// Don't use "haswell", as it implies `has_lzcnt`.macOS CI is still at Ivy Bridge EP, so `lzcnt`
324+
// is interpreted as `bsr`.
325+
isa_builder.enable("nehalem").unwrap();
324326
isa_builder.finish(flags)
325327
}
326328

0 commit comments

Comments
 (0)