diff options
author | Daniel Moody <daniel.moody@mongodb.com> | 2021-04-09 16:54:50 (GMT) |
---|---|---|
committer | Daniel Moody <daniel.moody@mongodb.com> | 2021-04-09 16:54:50 (GMT) |
commit | dd2b96c596b9446c356aea5f9fa41aab235bc24d (patch) | |
tree | 9d5ea78d6776de0da699b3a147162c825001b686 /SCons/Script | |
parent | 4750a25645153ee3978684d8f694d868a0bbe0d0 (diff) | |
download | SCons-dd2b96c596b9446c356aea5f9fa41aab235bc24d.zip SCons-dd2b96c596b9446c356aea5f9fa41aab235bc24d.tar.gz SCons-dd2b96c596b9446c356aea5f9fa41aab235bc24d.tar.bz2 |
Dont call progress if the progress object is Null
Diffstat (limited to 'SCons/Script')
-rw-r--r-- | SCons/Script/Main.py | 5 |
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): |