mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
Rollup merge of #105904 - MarcusCalhoun-Lopez:darwin_arch_i386, r=bjorn3
Fix arch flag on i686-apple-darwin i686-apple-darwin should use `-arch i386` instead of `-arch i686`
This commit is contained in:
commit
2ddfa8fd3b
@ -600,6 +600,9 @@ fn configure_cmake(
|
||||
if target.starts_with("aarch64") {
|
||||
// macOS uses a different name for building arm64
|
||||
cfg.define("CMAKE_OSX_ARCHITECTURES", "arm64");
|
||||
} else if target.starts_with("i686") {
|
||||
// macOS uses a different name for building i386
|
||||
cfg.define("CMAKE_OSX_ARCHITECTURES", "i386");
|
||||
} else {
|
||||
cfg.define("CMAKE_OSX_ARCHITECTURES", target.triple.split('-').next().unwrap());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user