Fix toolchain locations.
The host tag directory was moved to be the top level within
toolchains/ some time ago, but this wasn't updated (or wasn't updated
correctly).
Change-Id: I35b086e6851626c40fc651528c552dfca5297d42
diff --git a/build/tools/make-standalone-toolchain.sh b/build/tools/make-standalone-toolchain.sh
index 0a97e1a..4d3375c 100755
--- a/build/tools/make-standalone-toolchain.sh
+++ b/build/tools/make-standalone-toolchain.sh
@@ -221,13 +221,7 @@
exit 1
fi
-if [ ! -d "$TOOLCHAIN_PATH/prebuilt/$SYSTEM" ] ; then
- echo "Host system '$SYSTEM' is not supported by the source NDK!"
- echo "Try --system=<name> with one of: " `(cd $TOOLCHAIN_PATH/prebuilt && ls) | grep -v gdbserver`
- exit 1
-fi
-
-TOOLCHAIN_PATH="$TOOLCHAIN_PATH/prebuilt/$SYSTEM"
+TOOLCHAIN_PATH="$TOOLCHAIN_PATH/prebuilt"
TOOLCHAIN_GCC=$TOOLCHAIN_PATH/bin/$ABI_CONFIGURE_TARGET-gcc
if [ ! -f "$TOOLCHAIN_GCC" ] ; then
@@ -243,13 +237,7 @@
echo "You must point to a valid NDK release package!"
exit 1
fi
-
- if [ ! -d "$LLVM_TOOLCHAIN_PATH/prebuilt/$SYSTEM" ] ; then
- echo "Host system '$SYSTEM' is not supported by the source NDK!"
- echo "Try --system=<name> with one of: " `(cd $LLVM_TOOLCHAIN_PATH/prebuilt && ls)`
- exit 1
- fi
- LLVM_TOOLCHAIN_PATH="$LLVM_TOOLCHAIN_PATH/prebuilt/$SYSTEM"
+ LLVM_TOOLCHAIN_PATH="$LLVM_TOOLCHAIN_PATH/prebuilt"
fi
# Get GCC_BASE_VERSION. Note that GCC_BASE_VERSION may be slightly different from GCC_VERSION.