From c0834619789ae0d3f3b1ac2e58d005dd9d8e0db6 Mon Sep 17 00:00:00 2001 From: James Harris Date: Thu, 8 Mar 2018 14:49:55 -0600 Subject: [PATCH] msvc: add pdb_install_task with /DEBUG:* flags Currently PDBs are only installed if the /DEBUG flag appears in the current toolchain's LINKFLAGS attribute. This patch expands support so that /DEBUG:FULL and /DEBUG:FASTLINK also cause PDBs to be installed. --- waflib/Tools/msvc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waflib/Tools/msvc.py b/waflib/Tools/msvc.py index ff58449d..f169c7f4 100644 --- a/waflib/Tools/msvc.py +++ b/waflib/Tools/msvc.py @@ -969,7 +969,7 @@ def apply_flags_msvc(self): if not is_static: for f in self.env.LINKFLAGS: d = f.lower() - if d[1:] == 'debug': + if d[1:] in ('debug', 'debug:full', 'debug:fastlink'): pdbnode = self.link_task.outputs[0].change_ext('.pdb') self.link_task.outputs.append(pdbnode)