Skip to content

Commit eeba91c

Browse files
committed
Merge branch 'master' of github.com:kivy/python-for-android
2 parents 181981b + 71a3e6d commit eeba91c

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)