Merge branch 'msvc_pdb_fix' into 'master'

msvc_pdb: check compiled_tasks existence, so it will not misleadingly throw a stacktrace if no sources was added

See merge request ita1024/waf!2265
This commit is contained in:
ita1024 2019-11-04 20:25:26 +00:00
commit 00501901eb
1 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,8 @@ def add_pdb_per_object(self):
around LNK4099. Flags are updated with a unique /Fd flag based on the
task output name. This is separate from the link pdb.
"""
if not hasattr(self, 'compiled_tasks'):
return
link_task = getattr(self, 'link_task', None)