From d46739f641897d38181fe8da42a0153091cf662b Mon Sep 17 00:00:00 2001 From: Dan Gilbert Date: Wed, 28 Jul 2021 16:11:45 +0200 Subject: [PATCH] Fix compilation of x86_64 on android when also compiling others --- android.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android.sh b/android.sh index 0b1c84d..00ffd30 100755 --- a/android.sh +++ b/android.sh @@ -194,7 +194,7 @@ export ORIGINAL_API=${API} # BUILD ENABLED LIBRARIES ON ENABLED ARCHITECTURES for run_arch in {0..12}; do if [[ ${ENABLED_ARCHITECTURES[$run_arch]} -eq 1 ]]; then - if [[ (${run_arch} -eq ${ARCH_ARM64_V8A} || ${run_arch} -eq ${ARCH_X86_64}) && ${API} -lt 21 ]]; then + if [[ (${run_arch} -eq ${ARCH_ARM64_V8A} || ${run_arch} -eq ${ARCH_X86_64}) && ${ORIGINAL_API} -lt 21 ]]; then # 64 bit ABIs supported after API 21 export API=21