summaryrefslogtreecommitdiffstats
path: root/SCons/Script
diff options
context:
space:
mode:
Diffstat (limited to 'SCons/Script')
-rw-r--r--SCons/Script/Main.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/SCons/Script/Main.py b/SCons/Script/Main.py
index 2ab2a0c..15f7ece 100644
--- a/SCons/Script/Main.py
+++ b/SCons/Script/Main.py
@@ -173,8 +173,9 @@ class BuildTask(SCons.Taskmaster.OutOfDateTask):
display('scons: ' + message)
def prepare(self):
- for target in self.targets:
- self.progress(target)
+ if not isinstance(self.progress, SCons.Util.Null):
+ for target in self.targets:
+ self.progress(target)
return SCons.Taskmaster.OutOfDateTask.prepare(self)
def needs_execute(self):