aboutsummaryrefslogtreecommitdiff
path: root/build/tools/gen-platforms.sh
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2014-11-17 10:06:59 +0800
committerAndrew Hsieh <andrewhsieh@google.com>2014-12-02 09:18:57 +0800
commit01a3a139b7a1bd03e874cfd2107b791cb1c505fb (patch)
tree0fa0e72d7a125942dfbb4da565cdc9f9a977de37 /build/tools/gen-platforms.sh
parente505b304e02af3423a69735bb86fd1288a3641b4 (diff)
downloadndk-01a3a139b7a1bd03e874cfd2107b791cb1c505fb.tar.gz
Set GCC 4.8 as the default for 32-bit ABIs
Add get_first_gcc_version_for_arch and set to GCC 4.6 for 32-bit ABIs while it's still around (deprecated but will be removed in 1-2 release) Change-Id: I035c3b46ffb6c5aacf92893b920623acbae1719c
Diffstat (limited to 'build/tools/gen-platforms.sh')
-rwxr-xr-xbuild/tools/gen-platforms.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/build/tools/gen-platforms.sh b/build/tools/gen-platforms.sh
index 2f7982c43..49d4fd8ba 100755
--- a/build/tools/gen-platforms.sh
+++ b/build/tools/gen-platforms.sh
@@ -388,7 +388,9 @@ get_default_compiler_for_arch()
elif [ -n "$OPTION_GCC_VERSION" -a "$OPTION_GCC_VERSION" != "default" ]; then
GCC_VERSION=$OPTION_GCC_VERSION
else
- GCC_VERSION=$(get_default_gcc_version_for_arch $ARCH)
+ # By default we want to use the first gcc (currently 4.6) instead of the default (gcc4.8)
+ # for best compatibility, at least before gcc4.6 (now deprecated) is removed from NDK package
+ GCC_VERSION=$(get_first_gcc_version_for_arch $ARCH) # $(get_default_gcc_version_for_arch $ARCH)
fi
for TAG in $HOST_TAG $HOST_TAG32; do
TOOLCHAIN_PREFIX="$NDK_DIR/$(get_toolchain_binprefix_for_arch $ARCH $GCC_VERSION $TAG)"