From c48a5f2653f7e76421c140cbd6018deffefccaf9 Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Sat, 13 Nov 2021 16:20:46 +0000 Subject: support ccache for MSVC too MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There's no official MSVC support in ccache yet, but there are patches in progress of getting upstreamed. So right now it's necessary to get a patched ccache. Ccache cannot work with -Zi option, since sharing debuginfo in a .PDB cannot be cached. Added --enable-z7-symbols that gets enabled by default if ccache is detected. It works even with PCHs enabled, and externals seem to work too. I get almost 100% hit rate on a rebuild, although such a rebuild is slower than on Linux. Change-Id: I1d230ee1fccc441b9d9bec794cc2e1ec13161999 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125179 Tested-by: Jenkins Reviewed-by: Luboš Luňák --- config_host.mk.in | 1 + 1 file changed, 1 insertion(+) (limited to 'config_host.mk.in') diff --git a/config_host.mk.in b/config_host.mk.in index ec22f695d782..a03ac19747bc 100644 --- a/config_host.mk.in +++ b/config_host.mk.in @@ -209,6 +209,7 @@ export ENABLE_SYMBOLS_FOR=@ENABLE_SYMBOLS_FOR@ export ENABLE_VALGRIND=@ENABLE_VALGRIND@ export ENABLE_WASM_STRIP=@ENABLE_WASM_STRIP@ export ENABLE_WERROR=@ENABLE_WERROR@ +export ENABLE_Z7_DEBUG=@ENABLE_Z7_DEBUG@ export ENDIANNESS=@ENDIANNESS@ export EPM=@EPM@ export EPM_FLAGS=@EPM_FLAGS@ -- cgit