mirror of
https://github.com/deltachat/deltachat-android.git
synced 2025-10-03 01:39:18 +02:00
adapt build script for M1/M2 hosts (#2433)
* adapt build script for M1/M2 hosts * GUI way to set up build environment, update NDK information * more precice warning message
This commit is contained in:
parent
d1b3124ab0
commit
f2e1503b52
2 changed files with 19 additions and 12 deletions
|
@ -46,6 +46,13 @@ echo Setting CARGO_TARGET environment variables.
|
|||
if test -z "$NDK_HOST_TAG"; then
|
||||
KERNEL="$(uname -s | tr '[:upper:]' '[:lower:]')"
|
||||
ARCH="$(uname -m)"
|
||||
|
||||
if test "$ARCH" == "arm64" && ! test -f "$ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/$KERNEL-$ARCH/bin/aarch64-linux-android21-clang"; then
|
||||
echo "arm64 host is not supported by $ANDROID_NDK_ROOT; trying to use x86_64, in case the host has a binary translation such as Rosetta or QEMU installed."
|
||||
echo "(Newer NDK may support arm64 host but may lack support for Android4/ABI16)"
|
||||
ARCH="x86_64"
|
||||
fi
|
||||
|
||||
NDK_HOST_TAG="$KERNEL-$ARCH"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue