Skip to content

Commit 71a3e6d

Browse files
committed
check for r9xx and raise error for newer ndk
1 parent 82da05c commit 71a3e6d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

distribute.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,12 @@ function push_arm() {
159159
elif [ "X${ANDROIDNDKVER:0:2}" == "Xr7" ] || [ "X${ANDROIDNDKVER:0:2}" == "Xr8" ]; then
160160
export TOOLCHAIN_PREFIX=arm-linux-androideabi
161161
export TOOLCHAIN_VERSION=4.4.3
162-
elif [ "X${ANDROIDNDKVER}" == "Xr9" ]; then
162+
elif [ "X${ANDROIDNDKVER:0:2}" == "Xr9" ]; then
163163
export TOOLCHAIN_PREFIX=arm-linux-androideabi
164164
export TOOLCHAIN_VERSION=4.8
165+
else
166+
echo "Error: Please report issue to enable support for newer ndk."
167+
exit 1
165168
fi
166169

167170
export PATH="$ANDROIDNDK/toolchains/$TOOLCHAIN_PREFIX-$TOOLCHAIN_VERSION/prebuilt/$PYPLATFORM-x86/bin/:$ANDROIDNDK/toolchains/$TOOLCHAIN_PREFIX-$TOOLCHAIN_VERSION/prebuilt/$PYPLATFORM-x86_64/bin/:$ANDROIDNDK:$ANDROIDSDK/tools:$PATH"

0 commit comments

Comments
 (0)