Skip to content

Commit

Permalink
Support building for Android on aarch64 macOS hosts
Browse files Browse the repository at this point in the history
The NDK puts universal binaries under the darwin-x86_64 directory.
  • Loading branch information
fornwall committed Oct 10, 2023
1 parent 5f70948 commit ebde05f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion physx-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ fn add_common(ctx: &mut Context) {
let ndk_toolchain = match host_str {
"x86_64-pc-windows-msvc" => "windows-x86_64",
"x86_64-unknown-linux-gnu" => "linux-x86_64",
"x86_64-apple-darwin" => "darwin-x86_64",
"x86_64-apple-darwin" | "aarch64-apple-darwin" => "darwin-x86_64",
_ => panic!(
"Host triple {} is unsupported for cross-compilation to Android",
host_str
Expand Down

0 comments on commit ebde05f

Please sign in to comment.