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 cecddb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions physx-sys/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

<!-- next-header -->
## [Unreleased] - ReleaseDate
## [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 cecddb6

Please sign in to comment.