summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2018-04-17 23:04:37 +0300
committerTor Lillqvist <tml@collabora.com>2018-04-18 07:41:21 +0200
commit55b9706bea5aa9b654ab39bc7d56339422e17087 (patch)
tree0f1f2c4307d6e8f50590e1c4b809bb7fca53fdc4 /solenv
parent842812a01c9ff959308a1d373fc5daae10304005 (diff)
Do use -O1 for Apple Clang older than 9.1.0
Don't want to risk breaking something by using -O2 with an older Clang, even if I don't remember exactly what the issue was when introducing the -O1 in 7b660e1423554928350e1de2cd4cb7eb577a27ec. Change-Id: I2adeb0e8eb85a9b5021fca3d9e1e703cb5604a81 Reviewed-on: https://gerrit.libreoffice.org/53068 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'solenv')
-rw-r--r--solenv/gbuild/platform/macosx.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/solenv/gbuild/platform/macosx.mk b/solenv/gbuild/platform/macosx.mk
index 37ff092ef4cb..be107371f123 100644
--- a/solenv/gbuild/platform/macosx.mk
+++ b/solenv/gbuild/platform/macosx.mk
@@ -22,6 +22,10 @@ export VCL_HIDE_WINDOWS=1
gb_SDKDIR := $(MACOSX_SDK_PATH)
+ifeq (PRE_9_1_0,$(shell test $(CLANGVER) -lt 90100 && echo PRE_9_1_0))
+gb_COMPILEROPTFLAGS := -O1
+endif
+
include $(GBUILDDIR)/platform/com_GCC_defs.mk
# Darwin mktemp -t expects a prefix, not a pattern