mirror of https://gitlab.com/ita1024/waf.git
Fix gccdeps.scan() returning nodes that no longer exist on disk.
This commit is contained in:
parent
8537c0de4a
commit
924a05dc50
|
@ -33,6 +33,8 @@ def scan(self):
|
|||
if not self.__class__.__name__ in self.env.ENABLE_GCCDEPS:
|
||||
return super(self.derived_gccdeps, self).scan()
|
||||
nodes = self.generator.bld.node_deps.get(self.uid(), [])
|
||||
# It can happen that dependencies are renamed or removed. Prevent crash at Task.compute_sig_implicit_deps().
|
||||
nodes = [node for node in nodes if node.exists()]
|
||||
names = []
|
||||
return (nodes, names)
|
||||
|
||||
|
|
Loading…
Reference in New Issue