Revert "Revert "Fix Android NDK caching. This is a directory.""

This reverts commit 39982f81c761595b57945cd9b75181b687251e4f, i.e.
it re-applies the fix from 2ca8cba8795091c2bcd6945f99b2036807a6883b.
This change can be made independently of the switch to clang.
This commit is contained in:
Brian Smith 2017-03-14 09:44:54 -10:00
parent 0b8d1ebb78
commit e6f97fa1f5

View File

@ -52,7 +52,7 @@ echo no | $ANDROID_SDK_INSTALL_DIR/tools/android create avd --name arm-18 --targ
$ANDROID_SDK_INSTALL_DIR/tools/android list avd
if [[ ! -f $ANDROID_NDK_INSTALL_DIR/sysroot/usr/include/arm-linux-androideabi ]];then
if [[ ! -d $ANDROID_NDK_INSTALL_DIR/sysroot/usr/include/arm-linux-androideabi ]];then
mkdir -p "${ANDROID_INSTALL_PREFIX}/downloads"
pushd "${ANDROID_INSTALL_PREFIX}/downloads"