diff options
author | Steven Knight <knight@baldmt.com> | 2004-12-03 16:06:04 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2004-12-03 16:06:04 (GMT) |
commit | f0c3476fdae7032e6232d112864518934ba8a13e (patch) | |
tree | fe59fb9ac580b7b454482d93d0389cd0f00f12fc /src/engine/SCons/Script | |
parent | 9bb2d035b8c5b5f1575ba40eb264d7a334f10542 (diff) | |
download | SCons-f0c3476fdae7032e6232d112864518934ba8a13e.zip SCons-f0c3476fdae7032e6232d112864518934ba8a13e.tar.gz SCons-f0c3476fdae7032e6232d112864518934ba8a13e.tar.bz2 |
Print --debug={tree,dtree,includes} even if the build has an error.
Diffstat (limited to 'src/engine/SCons/Script')
-rw-r--r-- | src/engine/SCons/Script/__init__.py | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/engine/SCons/Script/__init__.py b/src/engine/SCons/Script/__init__.py index 7d139a1..71c2f03 100644 --- a/src/engine/SCons/Script/__init__.py +++ b/src/engine/SCons/Script/__init__.py @@ -121,25 +121,6 @@ class BuildTask(SCons.Taskmaster.Task): else: SCons.Taskmaster.Task.executed(self) - # print the tree here instead of in execute() because - # this method is serialized, but execute isn't: - if print_tree and self.top: - print - SCons.Util.print_tree(self.targets[0], get_all_children) - if print_stree and self.top: - print - SCons.Util.print_tree(self.targets[0], get_all_children, - showtags=2) - if print_dtree and self.top: - print - SCons.Util.print_tree(self.targets[0], get_derived_children) - if print_includes and self.top: - t = self.targets[0] - tree = t.render_include_tree() - if tree: - print - print tree - def failed(self): # Handle the failure of a build task. The primary purpose here # is to display the various types of Errors and Exceptions @@ -182,6 +163,25 @@ class BuildTask(SCons.Taskmaster.Task): self.exc_clear() + def postprocess(self): + if self.top: + t = self.targets[0] + if print_tree: + print + SCons.Util.print_tree(t, get_all_children) + if print_stree: + print + SCons.Util.print_tree(t, get_all_children, showtags=2) + if print_dtree: + print + SCons.Util.print_tree(t, get_derived_children) + if print_includes: + tree = t.render_include_tree() + if tree: + print + print tree + SCons.Taskmaster.Task.postprocess(self) + def make_ready(self): """Make a task ready for execution""" SCons.Taskmaster.Task.make_ready(self) |