support ccache for MSVC too
commitc48a5f2653f7e76421c140cbd6018deffefccaf9
authorLuboš Luňák <l.lunak@centrum.cz>
Sat, 13 Nov 2021 16:20:46 +0000 (13 16:20 +0000)
committerLuboš Luňák <l.lunak@collabora.com>
Wed, 17 Nov 2021 14:21:44 +0000 (17 15:21 +0100)
treeb3415eecc9205f5787e749d8307c40792eedca77
parent938fbac669bc59cf0b388bd0d21a2f14c4399757
support ccache for MSVC too

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 <l.lunak@collabora.com>
16 files changed:
config_host.mk.in
configure.ac
external/curl/ExternalProject_curl.mk
external/curl/UnpackedTarball_curl.mk
external/curl/configurable-z-option.patch.0 [new file with mode: 0644]
external/openssl/ExternalProject_openssl.mk
external/openssl/UnpackedTarball_openssl.mk
external/openssl/configurable-z-option.patch.0 [new file with mode: 0644]
solenv/gbuild/PrecompiledHeaders.mk
solenv/gbuild/gbuild.mk
solenv/gbuild/platform/com_GCC_class.mk
solenv/gbuild/platform/com_GCC_defs.mk
solenv/gbuild/platform/com_MSC_class.mk
solenv/gbuild/platform/com_MSC_defs.mk
solenv/gcc-wrappers/wrapper.cxx
solenv/gcc-wrappers/wrapper.hxx