summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Executor.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2004-04-17 12:34:55 (GMT)
committerSteven Knight <knight@baldmt.com>2004-04-17 12:34:55 (GMT)
commit2b875f31e86ca90efb76fd81009876fc57266d31 (patch)
treee89b0387d2448f33c7a1dcf1cc47d12f584787fa /src/engine/SCons/Executor.py
parente29523e3a4612eb77695d921d2bbbfbb6f2dd2e0 (diff)
downloadSCons-2b875f31e86ca90efb76fd81009876fc57266d31.zip
SCons-2b875f31e86ca90efb76fd81009876fc57266d31.tar.gz
SCons-2b875f31e86ca90efb76fd81009876fc57266d31.tar.bz2
Add the highly anticipated --debug=explain option to provide build reasoning.
Diffstat (limited to 'src/engine/SCons/Executor.py')
-rw-r--r--src/engine/SCons/Executor.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/engine/SCons/Executor.py b/src/engine/SCons/Executor.py
index b636f60..ac209e0 100644
--- a/src/engine/SCons/Executor.py
+++ b/src/engine/SCons/Executor.py
@@ -133,6 +133,16 @@ class Executor:
slist = filter(lambda x, s=self.sources: x not in s, sources)
self.sources.extend(slist)
+ def __str__(self):
+ try:
+ return self.string
+ except AttributeError:
+ action = self.builder.action
+ self.string = action.genstring(self.targets,
+ self.sources,
+ self.get_build_env())
+ return self.string
+
def get_raw_contents(self):
"""Fetch the raw signature contents. This, along with
get_contents(), is the real reason this class exists, so we can