From 9a60e7ed9e58a43f001246109c816bc88adb009c Mon Sep 17 00:00:00 2001 From: Thomas Nagy Date: Wed, 16 Jun 2021 22:12:57 +0200 Subject: [PATCH] Process dependency Nodes in bld(rule=..., deps=[..]) --- waflib/TaskGen.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/waflib/TaskGen.py b/waflib/TaskGen.py index 2fa46289..89f63169 100644 --- a/waflib/TaskGen.py +++ b/waflib/TaskGen.py @@ -631,12 +631,8 @@ def process_rule(self): cls.scan = self.scan elif has_deps: def scan(self): - nodes = [] - for x in self.generator.to_list(getattr(self.generator, 'deps', None)): - node = self.generator.path.find_resource(x) - if not node: - self.generator.bld.fatal('Could not find %r in %r (was it declared?)' % (x, self.generator)) - nodes.append(node) + deps = getattr(self.generator, 'deps', None) + nodes = self.generator.to_nodes(deps) return [nodes, []] cls.scan = scan