From 384cc8541ee59cde6aac6925fb262fd199142a48 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Wed, 8 Dec 2021 18:02:14 +0300 Subject: [PATCH] compile.sh: use clang bundled in NDK --- compile.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compile.sh b/compile.sh index 7dcdcbe6..c4dba91e 100755 --- a/compile.sh +++ b/compile.sh @@ -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