aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@android.com>2010-03-26 18:10:33 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2010-03-31 16:24:04 -0700
commite1452515362c679c3439d28ba330a95a20f301a4 (patch)
treef3dd4e7b27fe8400236df66d768356c73cb1fb71 /build
parent07c6eb5c15f821c5ca9402cc0e99fb78abf17418 (diff)
downloadndk-e1452515362c679c3439d28ba330a95a20f301a4.tar.gz
build-toolchain.sh: fix the --force-build option
Change-Id: Ia171eff5bc4c352b1d9c646f133c69a77ff6681a
Diffstat (limited to 'build')
-rwxr-xr-xbuild/tools/build-toolchain.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/build/tools/build-toolchain.sh b/build/tools/build-toolchain.sh
index 6afbb8890..f025c3af1 100755
--- a/build/tools/build-toolchain.sh
+++ b/build/tools/build-toolchain.sh
@@ -63,7 +63,7 @@ BUILD_OUT=`mktemp -d /tmp/ndk-toolchain-XXX`
OPTION_HELP=no
OPTION_PLATFORM=
OPTION_FORCE_32=no
-OPTION_REBUILD=no
+OPTION_FORCE_BUILD=no
OPTION_GCC_VERSION=
OPTION_GDB_VERSION=
OPTION_PACKAGE=
@@ -492,7 +492,7 @@ if [ $OPTION_FORCE_DOWNLOAD ] ; then
timestamp_force toolchain verify
fi
-if [ $OPTION_FORCE_BUILD ] ; then
+if [ $OPTION_FORCE_BUILD = "yes" ] ; then
rm -rf $ANDROID_TOOLCHAIN_BUILD
timestamp_clear toolchain
timestamp_clear gdbserver
@@ -705,7 +705,7 @@ else
fi
for _toolchain in $ANDROID_TOOLCHAIN_LIST; do
- if timestamp_check toolchain build; then
+ if [ $OPTION_FORCE_BUILD = "yes" ] ; then
timestamp_force ${_toolchain} configure
timestamp_force ${_toolchain}-gdbserver configure
fi