From e18d0976ef2ea244b869fedba32b9cd9e206d5b7 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Fri, 11 Oct 2019 09:11:12 +0300 Subject: [PATCH] compile.sh: enable polly on host toolchain, as NDK doesn't have it... --- compile.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/compile.sh b/compile.sh index 87b42669..f9dc9e80 100755 --- a/compile.sh +++ b/compile.sh @@ -24,12 +24,12 @@ ROOT="$PWD" # compile.sh must be run from root of android project sources if [ -z "$1" ]; then BUILD_TYPE=debug - ENGINE_FLAGS="" - SDK_FLAGS="" else BUILD_TYPE=$1 - ENGINE_FLAGS="--enable-poly-opt" - SDK_FLAGS="--enable-poly-opt" + if [ "$TOOLCHAIN" = "host" ]; then + ENGINE_FLAGS="--enable-poly-opt" + SDK_FLAGS="--enable-poly-opt" + fi fi # Cleanup libraries