summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2019-04-02 20:56:54 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2019-04-02 20:56:54 (GMT)
commitb94a1792d01d7e47cd577228b97b6f32ab2bc8dc (patch)
tree44a9b4542da26c8f879dde19370e37bec12c221a /src
parent4b2c0674a783c6d2d1f66d2588223bd5d99acda7 (diff)
downloadSCons-b94a1792d01d7e47cd577228b97b6f32ab2bc8dc.zip
SCons-b94a1792d01d7e47cd577228b97b6f32ab2bc8dc.tar.gz
SCons-b94a1792d01d7e47cd577228b97b6f32ab2bc8dc.tar.bz2
Enhanced --debug=explain output. Breaks out sources, depends, and implicit components to dependency list. Updated test. TODO: better formatting
Diffstat (limited to 'src')
-rw-r--r--src/engine/SCons/Node/__init__.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/engine/SCons/Node/__init__.py b/src/engine/SCons/Node/__init__.py
index 131953b..ca6e6ee 100644
--- a/src/engine/SCons/Node/__init__.py
+++ b/src/engine/SCons/Node/__init__.py
@@ -1666,9 +1666,16 @@ class Node(object, with_metaclass(NoSlotsPyPy)):
lines.append("`%s' changed\n" % stringify(k))
if len(lines) == 0 and old_bkids != new_bkids:
- lines.append("the dependency order changed:\n" +
- "%sold: %s\n" % (' '*15, list(map(stringify, old_bkids))) +
- "%snew: %s\n" % (' '*15, list(map(stringify, new_bkids))))
+ lines.append("the dependency order changed:\n")
+ lines.append("->Sources\n")
+ for (o,n) in map(None, old.bsources, new.bsources):
+ lines.append("Old:%s\tNew:%s\n"%(o,n))
+ lines.append("->Depends\n")
+ for (o,n) in map(None, old.bdepends, new.bdepends):
+ lines.append("Old:%s\tNew:%s\n"%(o,n))
+ lines.append("->Implicit\n")
+ for (o,n) in map(None, old.bimplicit, new.bimplicit):
+ lines.append("Old:%s\tNew:%s\n"%(o,n))
if len(lines) == 0:
def fmt_with_title(title, strlines):
@@ -1711,7 +1718,6 @@ class Walker(object):
This is depth-first, children are visited before the parent.
The Walker object can be initialized with any node, and
returns the next node on the descent with each get_next() call.
- 'kids_func' is an optional function that will be called to
get the children of a node instead of calling 'children'.
'cycle_func' is an optional function that will be called
when a cycle is detected.