summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2019-02-04 16:25:58 +0100
committerLuboš Luňák <l.lunak@collabora.com>2019-02-04 17:45:11 +0100
commit0a20339351dcbc75599df4e97626204c4cce8fb1 (patch)
treec7ee6fb85b73cf13db53caffcd76cc67147825fd /shell
parent91fcd999225e8525dc1765787cb110600cc92d48 (diff)
workaround to make Qt5 code build with Clang+icecream (#2)
This fixes and extends dad7c2213979695cf3573a130309206191b45157 . Change-Id: I29352d4b4809aa254e832a932bfeb595d065565b Reviewed-on: https://gerrit.libreoffice.org/67368 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'shell')
-rw-r--r--shell/Library_kde5be.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/shell/Library_kde5be.mk b/shell/Library_kde5be.mk
index b9c7c903a745..39fdaf884409 100644
--- a/shell/Library_kde5be.mk
+++ b/shell/Library_kde5be.mk
@@ -29,4 +29,12 @@ $(eval $(call gb_Library_add_exception_objects,kde5be1,\
shell/source/backends/kde5be/kde5backend \
))
+# Workaround for clang+icecream (clang's -frewrite-includes
+# doesn't handle Qt5's QT_HAS_INCLUDE that Qt5 uses for <chrono>).
+ifeq ($(COM_IS_CLANG),TRUE)
+$(eval $(call gb_Library_add_defs,kde5be1, \
+ -include chrono \
+))
+endif
+
# vim: set shiftwidth=4 tabstop=4 noexpandtab: