summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2004-05-17 14:17:39 (GMT)
committerSteven Knight <knight@baldmt.com>2004-05-17 14:17:39 (GMT)
commit12d2ae1193b9e32e0164218bb73240791914f976 (patch)
treecf4e0e02c10870d98dcdb8cc93d217b73d0124a1 /src
parent53dbe8a6dc45863207388a65318a9fe8bcc480e9 (diff)
downloadSCons-12d2ae1193b9e32e0164218bb73240791914f976.zip
SCons-12d2ae1193b9e32e0164218bb73240791914f976.tar.gz
SCons-12d2ae1193b9e32e0164218bb73240791914f976.tar.bz2
When a Node has been built, don't walk the whole tree back to delete the parents's implicit dependencies, let returning up the normal Taskmaster descent take care of it for us.
Diffstat (limited to 'src')
-rw-r--r--src/CHANGES.txt4
-rw-r--r--src/engine/SCons/Node/__init__.py10
2 files changed, 7 insertions, 7 deletions
diff --git a/src/CHANGES.txt b/src/CHANGES.txt
index 8d35dc5..b1d3119 100644
--- a/src/CHANGES.txt
+++ b/src/CHANGES.txt
@@ -115,6 +115,10 @@ RELEASE 0.96 - XXX
to replace the default print behavior with a custom strfunction()
for each of these.
+ - When a Node has been built, don't walk the whole tree back to delete
+ the parents's implicit dependencies, let returning up the normal
+ Taskmaster descent take care of it for us.
+
From Gary Oberbrunner:
- Add a --debug=presub option to print actions prior to substitution.
diff --git a/src/engine/SCons/Node/__init__.py b/src/engine/SCons/Node/__init__.py
index 59f2301..2841759 100644
--- a/src/engine/SCons/Node/__init__.py
+++ b/src/engine/SCons/Node/__init__.py
@@ -214,13 +214,9 @@ class Node:
if self.source_scanner:
self.found_includes = {}
self.includes = None
-
- def get_parents(node, parent): return node.get_parents()
- def clear_cache(node, parent):
- node.implicit = None
- node.del_binfo()
- w = Walker(self, get_parents, ignore_cycle, clear_cache)
- while w.next(): pass
+ for parent in self.get_parents():
+ parent.implicit = None
+ parent.del_binfo()
# The content just changed, delete any cached info
# so it will get recalculated.