Kaydet (Commit) 1f4a1b74 authored tarafından Mike Kaganski's avatar Mike Kaganski

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/44595Reviewed-by: 's avatarMike Kaganski <mike.kaganski@collabora.com>
Tested-by: 's avatarMike Kaganski <mike.kaganski@collabora.com>
üst e89ad623
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment