Index: platform_tools/android/bin/android_setup.sh |
diff --git a/platform_tools/android/bin/android_setup.sh b/platform_tools/android/bin/android_setup.sh |
index 4b7a60f84a4d13055974f8d6035aa9a333efaef1..fd05a985e31a996e6312a49836835aa56a24bbfb 100755 |
--- a/platform_tools/android/bin/android_setup.sh |
+++ b/platform_tools/android/bin/android_setup.sh |
@@ -162,8 +162,10 @@ setup_device() { |
verbose "The build is targeting the device: $TARGET_DEVICE" |
exportVar DEVICE_ID $TARGET_DEVICE |
- # setup the appropriate cross compiling toolchains |
- source $SCRIPT_DIR/utils/setup_toolchain.sh |
+ if [ -z "$SKIP_TOOLCHAIN_SETUP" ]; then |
+ # setup the appropriate cross compiling toolchains |
+ source $SCRIPT_DIR/utils/setup_toolchain.sh |
+ fi |
DEFINES="${DEFINES} android_toolchain=${TOOLCHAIN_TYPE}" |
DEFINES="${DEFINES} android_buildtype=${BUILDTYPE}" |