Skip to content

Commit

Permalink
Support building for Android on aarch64 macOS hosts (#216)
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 authored Oct 10, 2023
1 parent 5f70948 commit a734a69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions physx-sys/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

<!-- next-header -->
## [Unreleased] - ReleaseDate
### Added
- [PR#216](https://github.com/EmbarkStudios/physx-rs/pull/216) Support building for Android on aarch64 macOS hosts

## [0.11.4] - 2023-09-18
### Added
- [PR#212](https://github.com/EmbarkStudios/physx-rs/pull/212) Build physx with -fno-strict-aliasing.
Expand Down
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 a734a69

Please sign in to comment.