Commits

Edd Dawson  committed 9165d0c

Ensure linker has \debug and \pdb;... when 'debuggable' is in abstract flags

  • Participants
  • Parent commits 79c927d

Comments (0)

Files changed (1)

File doozerlib/kitbox/mslink.py

 
         for flagsname in ['linkflags', 'shlibflags']:
             self.flagsmap.add(Always(), Append(flagsname, '/nologo'))
-            self.flagsmap.add(Has('debug'), Append(flagsname, '/debug'))
-            self.flagsmap.add(Has('debug') & HasNot('optimize-global'), Append(flagsname, '/incremental'))
+            self.flagsmap.add(HasAnyOf('debug', 'debuggable'), Append(flagsname, '/debug'))
+            self.flagsmap.add(HasAnyOf('debug', 'debuggable') & HasNot('optimize-global'), Append(flagsname, '/incremental'))
             self.flagsmap.add(Has('optimize-global'), Append(flagsname, '/LTCG'))
             self.flagsmap.add(Has('warn-as-error'), Append(flagsname, '/WX'))