Skip to content

Commit ee1a905

Browse files
Fix arch flag on i686-apple-darwin
i686-apple-darwin should use `-arch i386` instead of `-arch i686`
1 parent 4653c93 commit ee1a905

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/bootstrap/native.rs

+3
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,9 @@ fn configure_cmake(
600600
if target.starts_with("aarch64") {
601601
// macOS uses a different name for building arm64
602602
cfg.define("CMAKE_OSX_ARCHITECTURES", "arm64");
603+
} else if target.starts_with("i686") {
604+
// macOS uses a different name for building i386
605+
cfg.define("CMAKE_OSX_ARCHITECTURES", "i386");
603606
} else {
604607
cfg.define("CMAKE_OSX_ARCHITECTURES", target.triple.split('-').next().unwrap());
605608
}

0 commit comments

Comments
 (0)