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

Luboš Luňák (via logerrit) logerrit at kemper.freedesktop.org
Mon Apr 8 10:24:43 UTC 2019


 solenv/gbuild/PrecompiledHeaders.mk |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 58a7e252320f630f871d6c93dca5a3a85a44d9a6
Author:     Luboš Luňák <l.lunak at collabora.com>
AuthorDate: Sat Mar 9 14:00:55 2019 +0100
Commit:     Luboš Luňák <l.lunak at collabora.com>
CommitDate: Mon Apr 8 12:24:16 2019 +0200

    support for CCACHE_PCH_EXTSUM
    
    Manpage for ccache says that hashing large PCH files may take a bit,
    so if CCACHE_PCH_EXTSUM is set, ccache will instead try to hash just
    a file named as the PCH file with .sum added. The build system is
    responsible for handling the file.
    
    Change-Id: I33fd04f54952d00c0f84ca364f939a86a4844fa6
    Reviewed-on: https://gerrit.libreoffice.org/70380
    Tested-by: Jenkins
    Reviewed-by: Luboš Luňák <l.lunak at collabora.com>

diff --git a/solenv/gbuild/PrecompiledHeaders.mk b/solenv/gbuild/PrecompiledHeaders.mk
index a2c1f323baf3..37adf778f2e3 100644
--- a/solenv/gbuild/PrecompiledHeaders.mk
+++ b/solenv/gbuild/PrecompiledHeaders.mk
@@ -39,6 +39,7 @@ $(call gb_PrecompiledHeader_get_dep_target,%) :
 $(call gb_PrecompiledHeader_get_target,%) :
 	rm -f $@
 	$(call gb_PrecompiledHeader__command,$@,$*,$<,$(PCH_DEFS),$(PCH_CXXFLAGS) $(gb_PrecompiledHeader_EXCEPTIONFLAGS),$(INCLUDE))
+	$(SHA256SUM) $@ >$@.sum
 ifeq ($(gb_FULLDEPS),$(true))
 	$(call gb_Helper_abbreviate_dirs,\
 		RESPONSEFILE=$(call var2file,$(shell $(gb_MKTEMP)),200,$(call gb_PrecompiledHeader_get_dep_target_tmp,$*)) && \
@@ -54,6 +55,7 @@ $(call gb_PrecompiledHeader_get_clean_target,%) :
 		rm -f $(call gb_PrecompiledHeader_get_target,$*) \
 			$(call gb_PrecompiledHeader_get_target,$*).obj \
 			$(call gb_PrecompiledHeader_get_target,$*).pdb \
+			$(call gb_PrecompiledHeader_get_target,$*).sum \
 			$(call gb_PrecompiledHeader_get_timestamp,$*) \
 			$(call gb_PrecompiledHeader_get_dep_target,$*))
 


More information about the Libreoffice-commits mailing list