compile.sh: use clang bundled in NDK

This commit is contained in:
Alibek Omarov 2021-12-08 18:02:14 +03:00
parent 63bd4faa22
commit 384cc8541e

View file

@ -11,7 +11,7 @@ if echo "$HOME" | grep "com.termux"; then
else
echo "-- Configuring for Android SDK/NDK"
if [ -z "$TOOLCHAIN" ]; then
TOOLCHAIN=host
TOOLCHAIN=llvm
fi
fi
@ -28,7 +28,7 @@ if [ -z "$1" ]; then
BUILD_TYPE=debug
else
BUILD_TYPE=$1
if [ "$TOOLCHAIN" = "host" ]; then
if [ "$TOOLCHAIN" = "host" || "$TOOLCHAIN" = "llvm" ]; then
ENGINE_FLAGS="--enable-poly-opt"
SDK_FLAGS="--enable-poly-opt"
fi