diff options
| author | Steven Knight <knight@baldmt.com> | 2003-01-14 23:43:59 (GMT) |
|---|---|---|
| committer | Steven Knight <knight@baldmt.com> | 2003-01-14 23:43:59 (GMT) |
| commit | 6bc341a516112626e301004808205731f4bc4c9e (patch) | |
| tree | 79bd53b5fa29aa88b597fa4a920ac93737b6af06 /src/engine/SCons/Script | |
| parent | ac081d1e052317f3cd08de9ec301c3686006ae80 (diff) | |
| download | SCons-6bc341a516112626e301004808205731f4bc4c9e.zip SCons-6bc341a516112626e301004808205731f4bc4c9e.tar.gz SCons-6bc341a516112626e301004808205731f4bc4c9e.tar.bz2 | |
Add --debug-includes. (Anthony Roach)
Diffstat (limited to 'src/engine/SCons/Script')
| -rw-r--r-- | src/engine/SCons/Script/__init__.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/engine/SCons/Script/__init__.py b/src/engine/SCons/Script/__init__.py index a33e373..034bf73 100644 --- a/src/engine/SCons/Script/__init__.py +++ b/src/engine/SCons/Script/__init__.py @@ -120,6 +120,12 @@ class BuildTask(SCons.Taskmaster.Task): if print_dtree and self.top: print print SCons.Util.render_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): e = sys.exc_value @@ -191,6 +197,7 @@ keep_going_on_error = 0 print_tree = 0 print_dtree = 0 print_time = 0 +print_includes = 0 ignore_errors = 0 sconscript_time = 0 command_time = 0 @@ -353,7 +360,7 @@ def _SConstruct_exists(dirname=''): def _set_globals(options): global repositories, keep_going_on_error, print_tree, print_dtree - global print_time, ignore_errors + global print_time, ignore_errors, print_includes if options.repository: repositories.extend(options.repository) @@ -366,6 +373,8 @@ def _set_globals(options): print_dtree = 1 elif options.debug == "time": print_time = 1 + elif options.debug == "includes": + print_includes = 1 except AttributeError: pass ignore_errors = options.ignore_errors @@ -442,7 +451,7 @@ class OptParser(OptionParser): "python" + sys.version[0:3], "pdb.py") os.execvpe(args[0], args, os.environ) - elif value in ["tree", "dtree", "time"]: + elif value in ["tree", "dtree", "time", "includes"]: setattr(parser.values, 'debug', value) else: raise OptionValueError("Warning: %s is not a valid debug type" % value) |
