Handle uname -m returning arm64

This commit is contained in:
Richard van der Hoff 2024-12-11 22:29:35 +00:00
parent 60ea133357
commit 5a2c1ae000
2 changed files with 4 additions and 1 deletions

View file

@ -60,6 +60,9 @@ buildApp=${buildApp:-no}
cd "${elementPwd}"
default_arch="$(uname -m)-linux-android"
# On ARM MacOS, `uname -m` returns arm64, but the toolchain is called aarch64
default_arch="${default_arch/arm64/aarch64}"
read -p "Enter the architecture you want to build for (default '$default_arch'): " target_arch
target_arch="${target_arch:-${default_arch}}"