mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
compile.sh: use clang bundled in NDK
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user