From df261fff0b4b8cfd99f1a9c303b84da287c1bf56 Mon Sep 17 00:00:00 2001 From: MistEO Date: Fri, 6 Sep 2024 22:39:32 +0800 Subject: [PATCH] fix --- maadeps/runtime_android.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/maadeps/runtime_android.py b/maadeps/runtime_android.py index 1f6a407..ae438c1 100644 --- a/maadeps/runtime_android.py +++ b/maadeps/runtime_android.py @@ -53,7 +53,7 @@ def install_runtime(target, debug): print("Installing libc++_shared.so for Android") android_ndk = os.environ.get("ANDROID_NDK_HOME", "/opt/android-ndk") - # if windows: + if sys.platform == "win32" or sys.platform == "cygwin": host = "windows-x86_64" elif sys.platform == "linux": @@ -61,10 +61,10 @@ def install_runtime(target, debug): elif sys.platform == "darwin": host = "darwin-x86_64" - if "arm" in triplet: - runtime = "arm-linux-androideabi" - elif "arm64" in triplet: + if "arm64" in triplet: runtime = "aarch64-linux-android" + elif "arm" in triplet: + runtime = "arm-linux-androideabi" elif "x64" in triplet: runtime = "x86_64-linux-android"