summaryrefslogtreecommitdiff
path: root/sax
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2019-09-22 20:28:38 +0200
committerLuboš Luňák <l.lunak@collabora.com>2019-10-04 08:59:13 +0200
commit98dc4ec4957ffa520c9acb21d2477df36496a000 (patch)
treeab76a20e0660911584d91b444b7369d0ef383841 /sax
parent08d02b550a1aee0e109334384c260244d450d6a0 (diff)
support reusing PCH if linktarget has additional reasonable defines
Where reasonable means they are from a list of defines known not to affect the system headers, and so they are safe to differ from how the PCH was built. A bit hackish, but works in practice. Change-Id: Ia00d2e4c56212aca05ba9d47abbb0d253998219f Reviewed-on: https://gerrit.libreoffice.org/79364 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'sax')
-rw-r--r--sax/Library_expwrap.mk2
-rw-r--r--sax/Library_sax.mk2
2 files changed, 4 insertions, 0 deletions
diff --git a/sax/Library_expwrap.mk b/sax/Library_expwrap.mk
index 17a91e4d5904..f4d811886ca0 100644
--- a/sax/Library_expwrap.mk
+++ b/sax/Library_expwrap.mk
@@ -16,6 +16,8 @@ $(eval $(call gb_Library_set_include,expwrap,\
$$(INCLUDE) \
))
+$(eval $(call gb_Library_reuse_precompiled_header,expwrap,pch/inc/pch/precompiled_system))
+
$(eval $(call gb_Library_add_defs,expwrap,\
-DFASTSAX_DLLIMPLEMENTATION \
))
diff --git a/sax/Library_sax.mk b/sax/Library_sax.mk
index 6ef11645f6f3..7fff54b7eed7 100644
--- a/sax/Library_sax.mk
+++ b/sax/Library_sax.mk
@@ -16,6 +16,8 @@ $(eval $(call gb_Library_set_include,sax,\
$(eval $(call gb_Library_use_external,sax,boost_headers))
+$(eval $(call gb_Library_reuse_precompiled_header,sax,pch/inc/pch/precompiled_system))
+
$(eval $(call gb_Library_use_sdk_api,sax))
$(eval $(call gb_Library_use_libraries,sax,\