2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-22 01:46:15 +01:00

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

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)