Skip to content

Commit b63f824

Browse files
Add -arch compiler flag on older macOS systems (#607)
1 parent 26cdfb7 commit b63f824

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3086,6 +3086,12 @@ fn map_darwin_target_from_rust_to_compiler_architecture(target: &str) -> Option<
30863086
Some("arm64e")
30873087
} else if target.contains("aarch64") {
30883088
Some("arm64")
3089+
} else if target.contains("i686") {
3090+
Some("i386")
3091+
} else if target.contains("powerpc") {
3092+
Some("ppc")
3093+
} else if target.contains("powerpc64") {
3094+
Some("ppc64")
30893095
} else {
30903096
None
30913097
}

0 commit comments

Comments
 (0)