summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Node/__init__.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2005-03-20 00:23:12 (GMT)
committerSteven Knight <knight@baldmt.com>2005-03-20 00:23:12 (GMT)
commit82a50acec0e8ac5d2c02d01bfad31df542563636 (patch)
tree456136ba40d95e37de418fef77c1a2b088a129c6 /src/engine/SCons/Node/__init__.py
parent6a74f6bcc688c7fec85fadc732c98e786d99bbda (diff)
downloadSCons-82a50acec0e8ac5d2c02d01bfad31df542563636.zip
SCons-82a50acec0e8ac5d2c02d01bfad31df542563636.tar.gz
SCons-82a50acec0e8ac5d2c02d01bfad31df542563636.tar.bz2
Fix re-scanning of built files for implicit dependencies when the -j option is used.
Diffstat (limited to 'src/engine/SCons/Node/__init__.py')
-rw-r--r--src/engine/SCons/Node/__init__.py17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/engine/SCons/Node/__init__.py b/src/engine/SCons/Node/__init__.py
index 9c15659..e1f872f 100644
--- a/src/engine/SCons/Node/__init__.py
+++ b/src/engine/SCons/Node/__init__.py
@@ -62,6 +62,7 @@ import SCons.Util
# it has no builder of its own. The canonical example is a file
# system directory, which is only up to date if all of its children
# were up to date.
+no_state = 0
pending = 1
executing = 2
up_to_date = 3
@@ -69,6 +70,16 @@ executed = 4
failed = 5
stack = 6 # nodes that are in the current Taskmaster execution stack
+StateString = {
+ 0 : "0",
+ 1 : "pending",
+ 2 : "executing",
+ 3 : "up_to_date",
+ 4 : "executed",
+ 5 : "failed",
+ 6 : "stack",
+}
+
# controls whether implicit dependencies are cached:
implicit_cache = 0
@@ -124,7 +135,7 @@ class Node:
self.wkids = None # Kids yet to walk, when it's an array
self.env = None
- self.state = None
+ self.state = no_state
self.precious = None
self.always_build = None
self.found_includes = {}
@@ -291,10 +302,6 @@ class Node:
without requiring a build.."""
pass
- def depends_on(self, nodes):
- """Does this node depend on any of 'nodes'? __cacheable__"""
- return reduce(lambda D,N,C=self.children(): D or (N in C), nodes, 0)
-
def builder_set(self, builder):
"__cache_reset__"
self.builder = builder