diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2013-08-02 21:22:10 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2013-08-02 22:17:12 -0500 |
commit | 33ed80c271d08b1756d2b60c3d62f474dff5f0c8 (patch) | |
tree | 0427320d0d7db362049134d9c6aadef1924a1019 | |
parent | 1526e6fde2a82e494f1e7993eb8bbe1a08f5f375 (diff) |
the compiler of the 10.6 SDK is pretty confused wrt to aliasing warning
Change-Id: I7628a7cf862642e2fa85bf25bfc60cd7f06c2dbe
-rw-r--r-- | solenv/gbuild/platform/macosx.mk | 5 |
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 |