diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2018-12-20 17:10:37 +0100 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2018-12-21 23:04:19 +0100 |
commit | dad7c2213979695cf3573a130309206191b45157 (patch) | |
tree | 5ed50f546678c46b235b0f0d215eae5a8b1a6b25 /vcl/Library_vclplug_kde5.mk | |
parent | 0a2533aacc2dc98790510fdafd144aad66f231f2 (diff) |
workaround to make Qt5 code build with Clang+icecream
Qt5 uses QT_HAS_INCLUDE (which maps to __has_include), and uses it
to guard #include <chrono>. Clang's -frewrite-includes, which icecream
uses for distributing source to remote nodes, for some reason doesn't
recognize __has_include properly when wrapped by this macro, and this
all results in strange compile errors related to std::chrono.
Change-Id: Ia375ebd928b40ebd51ab4cc59488f3b62939e039
Reviewed-on: https://gerrit.libreoffice.org/65506
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'vcl/Library_vclplug_kde5.mk')
-rw-r--r-- | vcl/Library_vclplug_kde5.mk | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vcl/Library_vclplug_kde5.mk b/vcl/Library_vclplug_kde5.mk index 4d134d0fbf8b..2d2a8a920a1c 100644 --- a/vcl/Library_vclplug_kde5.mk +++ b/vcl/Library_vclplug_kde5.mk @@ -94,4 +94,12 @@ $(eval $(call gb_Library_add_libs,vclplug_kde5,\ )) endif +# 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,vclplug_qt5, \ + -include chrono \ +)) +endif + # vim: set noet sw=4 ts=4: |