summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2016-08-02 13:27:43 +0300
committerTor Lillqvist <tml@collabora.com>2016-08-02 13:32:17 +0300
commit52393273558a68fb8e8e8b7a5da233c5e5c712f1 (patch)
tree5e3ef03b3649f9c66bbd7829574d057e673ef11f
parentb0a1c742a92fa685d45492cbec8a0105375be884 (diff)
Seems that Clang in Xcode 7.3.1 produces broken code with -O2 in some cases
For instance CppunitTest_sw_mailmerge crashes when dbaccess is compiled with -O2, but works fine with -O1. Did not bother with any closer checks for Clang version for now in this branch. Change-Id: I7941e89af312f3102d8b2f4476e29deaaa4d966c
-rw-r--r--solenv/gbuild/platform/macosx.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/solenv/gbuild/platform/macosx.mk b/solenv/gbuild/platform/macosx.mk
index 763c97853368..361e20249e21 100644
--- a/solenv/gbuild/platform/macosx.mk
+++ b/solenv/gbuild/platform/macosx.mk
@@ -22,6 +22,8 @@ export VCL_HIDE_WINDOWS=1
gb_SDKDIR := $(MACOSX_SDK_PATH)
+gb_COMPILEROPTFLAGS := -O1
+
include $(GBUILDDIR)/platform/com_GCC_defs.mk
# Darwin mktemp -t expects a prefix, not a pattern