Skip to content

Commit

Permalink
Add -arch compiler flag on older macOS systems (#607)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusCalhoun-Lopez authored Jun 7, 2021
1 parent 26cdfb7 commit b63f824
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3086,6 +3086,12 @@ fn map_darwin_target_from_rust_to_compiler_architecture(target: &str) -> Option<
Some("arm64e")
} else if target.contains("aarch64") {
Some("arm64")
} else if target.contains("i686") {
Some("i386")
} else if target.contains("powerpc") {
Some("ppc")
} else if target.contains("powerpc64") {
Some("ppc64")
} else {
None
}
Expand Down

0 comments on commit b63f824

Please sign in to comment.