Revert to using GCC 4.9 toolchain for Android because GCC can x86!

- While LLVM/Clang appears to be very stable with codegen for ARM architectures, I have trust issues with Clang
      producing optimized codegen for the 32bit x86 architecture.
    - I have witnessed a number of examples where Clang generates invalid x86 code for both Chromium Breakpad and JSMN
      in this project, as well as similar issues discovered at the day job.  (This is for the LLVM toolchain in the
      latest NDK as well as previous ones)
This commit is contained in:
Aaron Culliney 2016-05-05 20:45:24 -07:00
parent d2261815a1
commit ab59b089d9

View File

@ -106,8 +106,8 @@ fi
if test "x$do_build" = "x1" -o "x$do_release" = "x1" ; then
CC=`which clang`
#CC=`which gcc`
#CC=`which clang`
CC=`which gcc`
CFLAGS="-std=gnu11"
# ROMz
@ -124,14 +124,14 @@ if test "x$do_build" = "x1" -o "x$do_release" = "x1" ; then
if test "x$do_build" = "x1" ; then
export BUILD_MODE=debug
ndk-build V=1 NDK_MODULE_PATH=. NDK_DEBUG=1 NDK_TOOLCHAIN_VERSION=clang
ndk-build V=1 NDK_MODULE_PATH=. NDK_DEBUG=1 NDK_TOOLCHAIN_VERSION=4.9
ret=$?
if test "x$ret" != "x0" ; then
exit $ret
fi
else
export BUILD_MODE=release
ndk-build V=1 NDK_MODULE_PATH=. NDK_TOOLCHAIN_VERSION=clang
ndk-build V=1 NDK_MODULE_PATH=. NDK_TOOLCHAIN_VERSION=4.9
ret=$?
if test "x$ret" != "x0" ; then
exit $ret