Define correct default gcc target march/mtune/mfpmath flags for x86
build-gcc.sh counterpart is fixed here:
https://android-review.googlesource.com/#/c/50815
Change-Id: I3e8b2e2dad06ac9113805fb074573505fd514e1d
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
diff --git a/build/tools/build-host-gcc.sh b/build/tools/build-host-gcc.sh
index 469eced..2145396 100755
--- a/build/tools/build-host-gcc.sh
+++ b/build/tools/build-host-gcc.sh
@@ -1427,6 +1427,9 @@
arm)
ARGS=$ARGS" --with-arch=armv5te --with-float=soft --with-fpu=vfpv3-d16"
;;
+ x86)
+ ARGS=$ARGS" --with-arch=i686 --with-tune=atom --with-fpmath=sse"
+ ;;
mips)
# Add --disable-fixed-point to disable fixed-point support
# Add --disable-threads for eh_frame handling in a single thread