c48a5f2653
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>
20 lines
711 B
Text
20 lines
711 B
Text
--- winbuild/MakefileBuild.vc.sav 2021-11-13 11:43:40.756226600 +0000
|
|
+++ winbuild/MakefileBuild.vc 2021-11-13 11:52:08.921692300 +0000
|
|
@@ -45,7 +45,7 @@
|
|
|
|
!IF "$(VC)"=="6"
|
|
CC_NODEBUG = $(CC) /O2 /DNDEBUG
|
|
-CC_DEBUG = $(CC) /Od /Gm /Zi /D_DEBUG /GZ
|
|
+CC_DEBUG = $(CC) /Od /Gm $(DEBUG_FLAGS_VALUE) /D_DEBUG /GZ
|
|
CFLAGS = /I. /I../lib /I../include /nologo /W4 /GX /DWIN32 /YX /FD /c /DBUILDING_LIBCURL
|
|
!ELSE
|
|
CC_NODEBUG = $(CC) /O2 /DNDEBUG
|
|
@@ -62,7 +62,7 @@
|
|
# Instead of id: just create an archive, that contains all objects
|
|
LNKLIB = lib.exe
|
|
|
|
-CFLAGS_PDB = /Zi
|
|
+CFLAGS_PDB = $(DEBUG_FLAGS_VALUE)
|
|
LFLAGS_PDB = /incremental:no /opt:ref,icf /DEBUG
|
|
|
|
CFLAGS_LIBCURL_STATIC = /DCURL_STATICLIB
|