Index: platform_tools/android/bin/utils/setup_toolchain.sh |
diff --git a/platform_tools/android/bin/utils/setup_toolchain.sh b/platform_tools/android/bin/utils/setup_toolchain.sh |
index 1e9061698aa5db6f8e6318e399bade4c5eff950c..4476bb8a3858178f49e9f69e53763ccf80682b73 100755 |
--- a/platform_tools/android/bin/utils/setup_toolchain.sh |
+++ b/platform_tools/android/bin/utils/setup_toolchain.sh |
@@ -27,9 +27,14 @@ if [ -z "$SCRIPT_DIR" ]; then |
fi |
function default_toolchain() { |
- API_LEVEL=14 |
- NDK_REV=${NDK_REV-8e} |
+ NDK_REV=${NDK_REV-10exp} |
ANDROID_ARCH=${ANDROID_ARCH-arm} |
+ |
+ if [[ $ANDROID_ARCH == *64* ]]; then |
+ API_LEVEL=L # Experimental Android L-Release system images |
+ else |
+ API_LEVEL=14 # Official Android 4.0 system images |
+ fi |
TOOLCHAIN_DIR=${SCRIPT_DIR}/../toolchains |
if [ $(uname) == "Darwin" ]; then |