support ccache for MSVC too

Desktop / LibreOffice - Luboš Luňák [centrum.cz] - 17 November 2021 14:21 UTC

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

c48a5f2653f7 support ccache for MSVC too
config_host.mk.in | 1 +
configure.ac | 112 +++++++++++++++++++------
external/curl/ExternalProject_curl.mk | 1 +
external/curl/UnpackedTarball_curl.mk | 1 +
external/curl/configurable-z-option.patch.0 | 20 +++++
external/openssl/ExternalProject_openssl.mk | 1 +
external/openssl/UnpackedTarball_openssl.mk | 1 +
external/openssl/configurable-z-option.patch.0 | 34 ++++++++
solenv/gbuild/PrecompiledHeaders.mk | 2 +-
solenv/gbuild/gbuild.mk | 18 ++++
solenv/gbuild/platform/com_GCC_class.mk | 6 +-
solenv/gbuild/platform/com_GCC_defs.mk | 14 ----
solenv/gbuild/platform/com_MSC_class.mk | 18 +++-
solenv/gbuild/platform/com_MSC_defs.mk | 13 +++
solenv/gcc-wrappers/wrapper.cxx | 50 +++++++----
solenv/gcc-wrappers/wrapper.hxx | 3 +-
16 files changed, 234 insertions(+), 61 deletions(-)

Upstream: cgit.freedesktop.org


  • Share