From e53f071bbeb0aabcf85a8e84d6b34417d1459567 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Mon, 4 Nov 2019 16:31:58 +0300 Subject: [PATCH] msvc_pdb: check compiled_tasks existence, so it will not misleadingly throw a stacktrace if no sources was added --- waflib/extras/msvc_pdb.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/waflib/extras/msvc_pdb.py b/waflib/extras/msvc_pdb.py index 5621569b..881a2d53 100644 --- a/waflib/extras/msvc_pdb.py +++ b/waflib/extras/msvc_pdb.py @@ -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)