2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-30 05:52:24 +01:00

msvcdeps: Align with gccdeps

Just a few small changes to make msvcdeps.py align with gccdeps.py
better.
This commit is contained in:
Michael Vincent 2021-04-09 14:37:38 -05:00 committed by Thomas Nagy
parent 99820803b9
commit 0bc85fb681

View File

@ -112,9 +112,9 @@ def post_run(self):
if getattr(self, 'cached', None): if getattr(self, 'cached', None):
return Task.Task.post_run(self) return Task.Task.post_run(self)
bld = self.generator.bld
unresolved_names = []
resolved_nodes = [] resolved_nodes = []
unresolved_names = []
bld = self.generator.bld
# Dynamically bind to the cache # Dynamically bind to the cache
try: try:
@ -147,11 +147,14 @@ def post_run(self):
continue continue
if id(node) == id(self.inputs[0]): if id(node) == id(self.inputs[0]):
# Self-dependency # ignore the source file, it is already in the dependencies
# this way, successful config tests may be retrieved from the cache
continue continue
resolved_nodes.append(node) resolved_nodes.append(node)
Logs.debug('deps: msvcdeps for %s returned %s', self, resolved_nodes)
bld.node_deps[self.uid()] = resolved_nodes bld.node_deps[self.uid()] = resolved_nodes
bld.raw_deps[self.uid()] = unresolved_names bld.raw_deps[self.uid()] = unresolved_names