summaryrefslogtreecommitdiffstats
path: root/src/engine
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2005-11-06 23:00:32 (GMT)
committerSteven Knight <knight@baldmt.com>2005-11-06 23:00:32 (GMT)
commit6e913271bb52eb06a4221f008325ecbb5fde450a (patch)
treec9a710f51a09c3eb79f627e78c279e828c0bc713 /src/engine
parent6100e6fec11023b5ee239b097d240b1cbd32a739 (diff)
downloadSCons-6e913271bb52eb06a4221f008325ecbb5fde450a.zip
SCons-6e913271bb52eb06a4221f008325ecbb5fde450a.tar.gz
SCons-6e913271bb52eb06a4221f008325ecbb5fde450a.tar.bz2
Do not throw an exception if the type of a stored implicit dependency has changed since last run. (Dobes Vandermeer)
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/SCons/Node/__init__.py17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/engine/SCons/Node/__init__.py b/src/engine/SCons/Node/__init__.py
index b04284d..e73e5f3 100644
--- a/src/engine/SCons/Node/__init__.py
+++ b/src/engine/SCons/Node/__init__.py
@@ -516,8 +516,21 @@ class Node:
implicit = self.get_stored_implicit()
if implicit:
factory = build_env.get_factory(self.builder.source_factory)
- implicit = map(factory, implicit)
- self._add_child(self.implicit, self.implicit_dict, implicit)
+ nodes = []
+ for i in implicit:
+ try:
+ n = factory(i)
+ except TypeError:
+ # The implicit dependency was cached as one type
+ # of Node last time, but the configuration has
+ # changed (probably) and it's a different type
+ # this time. Just ignore the mismatch and go
+ # with what our current configuration says the
+ # Node is.
+ pass
+ else:
+ nodes.append(n)
+ self._add_child(self.implicit, self.implicit_dict, nodes)
calc = build_env.get_calculator()
if implicit_deps_unchanged or self.current(calc):
return