summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Executor.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/SCons/Executor.py')
-rw-r--r--src/engine/SCons/Executor.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/engine/SCons/Executor.py b/src/engine/SCons/Executor.py
index b3e6f88..bfb1a65 100644
--- a/src/engine/SCons/Executor.py
+++ b/src/engine/SCons/Executor.py
@@ -137,6 +137,26 @@ class Executor:
self.get_build_env())
return self.string
+ def strfunction(self):
+ try:
+ return self.string
+ except AttributeError:
+ action = self.action
+ build_env = self.get_build_env()
+ if action.strfunction is None:
+ # This instance has strfunction set to None to suppress
+ # printing of the action. Call the method directly
+ # through the class instead.
+ self._strfunc = action.__class__.strfunction(action,
+ self.targets,
+ self.sources,
+ build_env)
+ else:
+ self._strfunc = action.strfunction(self.targets,
+ self.sources,
+ build_env)
+ return self._strfunc
+
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