diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-07-07 15:16:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-07 15:16:57 +0200 |
commit | 1b8711b56cb904f302a4b7e9ae33239ff47e6a9e (patch) | |
tree | 3c682609a3e70657137e68bc7d076f08fec6e7b1 /platform/android/detect.py | |
parent | 421e93b5908f645af0f7011f1da4d7516343eba4 (diff) | |
parent | e87377856174075e38b6d2ca338f28ffa0d9f59f (diff) |
Merge pull request #62813 from bruvzg/android_fix_zstd_build
Diffstat (limited to 'platform/android/detect.py')
-rw-r--r-- | platform/android/detect.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/platform/android/detect.py b/platform/android/detect.py index 47cfade765..2ff5bf59ea 100644 --- a/platform/android/detect.py +++ b/platform/android/detect.py @@ -96,22 +96,19 @@ def configure(env): if env["android_arch"] == "armv7": target_triple = "armv7a-linux-androideabi" - bin_utils = "arm-linux-androideabi" env.extra_suffix = ".armv7" + env.extra_suffix elif env["android_arch"] == "arm64v8": target_triple = "aarch64-linux-android" - bin_utils = target_triple env.extra_suffix = ".armv8" + env.extra_suffix elif env["android_arch"] == "x86": target_triple = "i686-linux-android" - bin_utils = target_triple env.extra_suffix = ".x86" + env.extra_suffix elif env["android_arch"] == "x86_64": target_triple = "x86_64-linux-android" - bin_utils = target_triple env.extra_suffix = ".x86_64" + env.extra_suffix target_option = ["-target", target_triple + str(get_min_sdk_version(env["ndk_platform"]))] + env.Append(ASFLAGS=[target_option, "-c"]) env.Append(CCFLAGS=target_option) env.Append(LINKFLAGS=target_option) @@ -152,13 +149,12 @@ def configure(env): toolchain_path = ndk_root + "/toolchains/llvm/prebuilt/" + host_subpath compiler_path = toolchain_path + "/bin" - bin_utils_path = toolchain_path + "/" + bin_utils + "/bin" env["CC"] = compiler_path + "/clang" env["CXX"] = compiler_path + "/clang++" env["AR"] = compiler_path + "/llvm-ar" env["RANLIB"] = compiler_path + "/llvm-ranlib" - env["AS"] = bin_utils_path + "/as" + env["AS"] = compiler_path + "/clang" # Disable exceptions and rtti on non-tools (template) builds if env["tools"]: |