summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2004-06-17 04:31:46 (GMT)
committerSteven Knight <knight@baldmt.com>2004-06-17 04:31:46 (GMT)
commit5f1ca10deda557947d8669098fdce1852b38b81f (patch)
treee2ae792b53a4e56ff10abc093b711645fe41dd95 /src
parentf0bf250b85abbe23faa7eeff0e53beb0613a2c6f (diff)
downloadSCons-5f1ca10deda557947d8669098fdce1852b38b81f.zip
SCons-5f1ca10deda557947d8669098fdce1852b38b81f.tar.gz
SCons-5f1ca10deda557947d8669098fdce1852b38b81f.tar.bz2
Fix a problem with --debug=explain when actions change due to expanded construction variables.
Diffstat (limited to 'src')
-rw-r--r--src/engine/SCons/Node/__init__.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/engine/SCons/Node/__init__.py b/src/engine/SCons/Node/__init__.py
index 64226a6..51e6628 100644
--- a/src/engine/SCons/Node/__init__.py
+++ b/src/engine/SCons/Node/__init__.py
@@ -563,8 +563,8 @@ class Node:
binfo.bimplicitsigs = implicitsigs
if has_builder:
- binfo.bact = str(executor)
- binfo.bactsig = calc.module.signature(executor)
+ binfo.bact = executor.get_contents()
+ binfo.bactsig = bactsig
binfo.bsig = calc.module.collect(filter(None, sigs))
@@ -901,6 +901,11 @@ class Node:
elif osig[k] != nsig[k]:
lines.append("`%s' changed\n" % k)
+ if len(lines) == 0 and old_bkids != new_bkids:
+ lines.append("the dependency order changed:\n" +
+ "%sold: %s\n" % (' '*15, old_bkids) +
+ "%snew: %s\n" % (' '*15, new_bkids))
+
if len(lines) == 0:
newact, newactsig = self.binfo.bact, self.binfo.bactsig
if old.bact != newact:
@@ -909,9 +914,7 @@ class Node:
"%snew: %s\n" % (' '*15, newact))
if len(lines) == 0:
- lines.append("the dependency order changed:\n" +
- "%sold: %s\n" % (' '*15, old_bkids) +
- "%snew: %s\n" % (' '*15, new_bkids))
+ return "rebuilding `%s' for unknown reasons" % self
preamble = "rebuilding `%s' because" % self
if len(lines) == 1: