diff options
author | Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org> | 2011-11-01 23:00:42 +0059 |
---|---|---|
committer | Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org> | 2011-11-03 23:49:17 +0059 |
commit | 4b90a84520325879ec4b7f5559b1de15326982c3 (patch) | |
tree | ff2284a06bf0317ea4c15d2f3e91fbb03cf50a6c | |
parent | 98aafbef3d3b9c02788ef76d97e53645a0b8b516 (diff) | |
download | v8-linaro_android_2.3.7.tar.gz |
v8: Add workaround for old host compilerslinaro_android_2.3.7linaro_android_2.3.5
Due to compiler bugs, gcc 4.4 complains about aliasing violations
when building mksnapshot without -fno-strict-aliasing.
Put -fno-strict-aliasing back for the host builds because we
don't control the host compiler (yet).
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
-rw-r--r-- | Android.mksnapshot.mk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Android.mksnapshot.mk b/Android.mksnapshot.mk index db9678e3..04fb2896 100644 --- a/Android.mksnapshot.mk +++ b/Android.mksnapshot.mk @@ -59,6 +59,11 @@ LOCAL_CFLAGS := \ -DENABLE_DEBUGGER_SUPPORT \ -DV8_NATIVE_REGEXP +# Workaround for ancient host compilers +# Can go as soon as we require a decent +# host compiler... +HOST_GLOBAL_CFLAGS += -fno-strict-aliasing + ifeq ($(TARGET_ARCH),arm) LOCAL_CFLAGS += -DV8_TARGET_ARCH_ARM endif |