From a3b6d7dcacb84a954a77ab0dac49f83b1e2ba8ad Mon Sep 17 00:00:00 2001 From: Seth Hinze Date: Wed, 31 May 2017 14:17:08 -0700 Subject: [PATCH] Fix pdb installation in cs tool. --- waflib/Tools/cs.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/waflib/Tools/cs.py b/waflib/Tools/cs.py index 960aef1f..9b537adb 100644 --- a/waflib/Tools/cs.py +++ b/waflib/Tools/cs.py @@ -103,10 +103,10 @@ def debug_cs(self): else: out = node.change_ext('.pdb') self.cs_task.outputs.append(out) - try: - self.install_task.source.append(out) - except AttributeError: - pass + + if getattr(self, 'install_task', None): + self.pdb_install_task = self.add_install_files( + install_to=self.install_task.install_to, install_from=out) if csdebug == 'pdbonly': val = ['/debug+', '/debug:pdbonly']