mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-26 20:01:13 +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:
parent
99820803b9
commit
0bc85fb681
@ -112,9 +112,9 @@ def post_run(self):
|
||||
if getattr(self, 'cached', None):
|
||||
return Task.Task.post_run(self)
|
||||
|
||||
bld = self.generator.bld
|
||||
unresolved_names = []
|
||||
resolved_nodes = []
|
||||
unresolved_names = []
|
||||
bld = self.generator.bld
|
||||
|
||||
# Dynamically bind to the cache
|
||||
try:
|
||||
@ -147,11 +147,14 @@ def post_run(self):
|
||||
continue
|
||||
|
||||
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
|
||||
|
||||
resolved_nodes.append(node)
|
||||
|
||||
Logs.debug('deps: msvcdeps for %s returned %s', self, resolved_nodes)
|
||||
|
||||
bld.node_deps[self.uid()] = resolved_nodes
|
||||
bld.raw_deps[self.uid()] = unresolved_names
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user