Skip to content

Commit

Permalink
Handle x86_64h-apple-darwin target
Browse files Browse the repository at this point in the history
  • Loading branch information
thomcc committed Aug 1, 2023
1 parent df2f86c commit d870e77
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3735,7 +3735,9 @@ fn autodetect_android_compiler(target: &str, host: &str, gnu: &str, clang: &str)

// Rust and clang/cc don't agree on how to name the target.
fn map_darwin_target_from_rust_to_compiler_architecture(target: &str) -> Option<&'static str> {
if target.contains("x86_64") {
if target.contains("x86_64h") {
Some("x86_64h")
} else if target.contains("x86_64") {
Some("x86_64")
} else if target.contains("arm64e") {
Some("arm64e")
Expand Down

0 comments on commit d870e77

Please sign in to comment.