summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2013-08-02 21:22:10 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2013-08-02 22:17:12 -0500
commit33ed80c271d08b1756d2b60c3d62f474dff5f0c8 (patch)
tree0427320d0d7db362049134d9c6aadef1924a1019 /solenv
parent1526e6fde2a82e494f1e7993eb8bbe1a08f5f375 (diff)
the compiler of the 10.6 SDK is pretty confused wrt to aliasing warning
Change-Id: I7628a7cf862642e2fa85bf25bfc60cd7f06c2dbe
Diffstat (limited to 'solenv')
-rw-r--r--solenv/gbuild/platform/macosx.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/solenv/gbuild/platform/macosx.mk b/solenv/gbuild/platform/macosx.mk
index 1becf71890e9..cb27bf20e298 100644
--- a/solenv/gbuild/platform/macosx.mk
+++ b/solenv/gbuild/platform/macosx.mk
@@ -71,6 +71,11 @@ gb_COMPILERDEFS += \
endif
+ifneq ($(filter 1060,$(MACOSX_SDK_VERSION)),)
+gb_COMPILERNOOPTFLAGS := -O0 -fstrict-overflow
+
+endif
+
ifeq ($(HAVE_GCC_NO_LONG_DOUBLE),TRUE)
gb_CXXFLAGS += -Wno-long-double
endif