From ebde05fb40c882af976b05092af83de019b2fbe2 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Mon, 9 Oct 2023 22:38:42 +0200 Subject: [PATCH] Support building for Android on aarch64 macOS hosts The NDK puts universal binaries under the darwin-x86_64 directory. --- physx-sys/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/physx-sys/build.rs b/physx-sys/build.rs index eafbc144..cc13029d 100644 --- a/physx-sys/build.rs +++ b/physx-sys/build.rs @@ -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