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

New commits:
commit d86a3ae100c5a9ad2895baec9a564e570a0a7d93
Author: Peter Foley <pefol...@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 <mst...@redhat.com>
    Tested-by: Michael Stahl <mst...@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
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to