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

This commit is contained in:
Alibek Omarov 2019-11-04 16:31:58 +03:00 committed by Thomas Nagy
parent 64b74c7659
commit 261a589a66
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)