Skip to content

Commit f074cd9

Browse files
authored
Handle x86_64h-apple-darwin target (#840)
1 parent b388631 commit f074cd9

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
@@ -3737,7 +3737,9 @@ fn autodetect_android_compiler(target: &str, host: &str, gnu: &str, clang: &str)
37373737

37383738
// Rust and clang/cc don't agree on how to name the target.
37393739
fn map_darwin_target_from_rust_to_compiler_architecture(target: &str) -> Option<&'static str> {
3740-
if target.contains("x86_64") {
3740+
if target.contains("x86_64h") {
3741+
Some("x86_64h")
3742+
} else if target.contains("x86_64") {
37413743
Some("x86_64")
37423744
} else if target.contains("arm64e") {
37433745
Some("arm64e")

0 commit comments

Comments
 (0)