diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2017-11-10 15:49:53 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2017-11-18 09:41:34 +0100 |
commit | 1f4a1b74369caa1a61026b7776abe13f24ed48c1 (patch) | |
tree | 53f7bca9923bb6d089e6bd8348d532fb7d2443e1 /solenv/gbuild | |
parent | e89ad623f4d55869f0d67cc24c28292c168e5209 (diff) |
MSC: Embed Natvis to PDBs, to use in /DEBUGEXE debugs
E.g., when a unit test is debugged using
make CppunitTest_foo CPPUNITTRACE=TRUE
then devenv.exe is launched with /DEBUGEXE switch, and it's impossible
to add a .natvis file to the debug session (unless one adds the file
to path where VS looks for visualizers). A natvis added to PDBs will be
used in this case.
See https://docs.microsoft.com/en-us/cpp/build/reference/natvis-add-natvis-to-pdb
Change-Id: Icc31eb7c4fd063810e4074eaff774e8146b86877
Reviewed-on: https://gerrit.libreoffice.org/44595
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'solenv/gbuild')
-rw-r--r-- | solenv/gbuild/platform/com_MSC_defs.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/solenv/gbuild/platform/com_MSC_defs.mk b/solenv/gbuild/platform/com_MSC_defs.mk index dd3e31952ed8..2925315da324 100644 --- a/solenv/gbuild/platform/com_MSC_defs.mk +++ b/solenv/gbuild/platform/com_MSC_defs.mk @@ -238,6 +238,7 @@ gb_PrecompiledHeader_EXCEPTIONFLAGS := $(gb_LinkTarget_EXCEPTIONFLAGS) gb_LinkTarget_LDFLAGS := \ $(if $(findstring s,$(filter-out --%,$(MAKEFLAGS))),-nologo,) \ $(patsubst %,-LIBPATH:%,$(filter-out .,$(subst ;, ,$(subst \,/,$(ILIB))))) \ + /NATVIS:$(SRCDIR)/solenv/vs/LibreOffice.natvis \ # Prevent warning spamming # Happens because of the way we link our unit tests with our libraries. |