[Libreoffice-commits] core.git: solenv/gbuild

Peter Foley pefoley2 at pefoley.com
Thu Jan 21 14:36:26 PST 2016


 solenv/gbuild/platform/com_GCC_defs.mk |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit d86a3ae100c5a9ad2895baec9a564e570a0a7d93
Author: Peter Foley <pefoley2 at pefoley.com>
Date:   Sat Jan 16 16:01:39 2016 -0500

    Make ccache work properly with GCC PCH
    
    Change-Id: I2cbf3fc3ba2df7131ce9328de8bada701ecb3b65
    Reviewed-on: https://gerrit.libreoffice.org/21524
    Reviewed-by: Michael Stahl <mstahl at redhat.com>
    Tested-by: Michael Stahl <mstahl at redhat.com>

diff --git a/solenv/gbuild/platform/com_GCC_defs.mk b/solenv/gbuild/platform/com_GCC_defs.mk
index 877f502..ef7dbea 100644
--- a/solenv/gbuild/platform/com_GCC_defs.mk
+++ b/solenv/gbuild/platform/com_GCC_defs.mk
@@ -112,6 +112,13 @@ gb_CXXFLAGS_COMMON += -fstack-protector-strong
 gb_LinkTarget_LDFLAGS += -fstack-protector-strong
 endif
 
+ifeq ($(ENABLE_PCH),TRUE)
+ifneq ($(COM_IS_CLANG),TRUE)
+gb_CFLAGS_COMMON += -fpch-preprocess
+gb_CXXFLAGS_COMMON += -fpch-preprocess
+endif
+endif
+
 gb_CFLAGS_WERROR := $(if $(ENABLE_WERROR),-Werror)
 
 # This is the default in non-C++11 mode


More information about the Libreoffice-commits mailing list