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:
parent
99820803b9
commit
0bc85fb681
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user