aboutsummaryrefslogtreecommitdiffstats
path: root/waflib/Runner.py
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-03-17 17:31:04 +0100
committerDavid Robillard <d@drobilla.net>2019-03-17 18:14:27 +0100
commita065b13b94e2f08eddbec9a64d97c653618e7207 (patch)
treef3727071015b4c8034c756d466d6f1d37d0b3683 /waflib/Runner.py
parentd4a49fff9bbc610705b6292a069ae8fa72bb6e03 (diff)
parent06b859ac10d84580a21a912c75c37c73b9d65d2f (diff)
downloadmda.lv2-a065b13b94e2f08eddbec9a64d97c653618e7207.tar.gz
mda.lv2-a065b13b94e2f08eddbec9a64d97c653618e7207.tar.bz2
mda.lv2-a065b13b94e2f08eddbec9a64d97c653618e7207.zip
Update autowaf and adapt to new APIHEADmaster
Diffstat (limited to 'waflib/Runner.py')
-rw-r--r--waflib/Runner.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/waflib/Runner.py b/waflib/Runner.py
index 261084d..5d27669 100644
--- a/waflib/Runner.py
+++ b/waflib/Runner.py
@@ -37,6 +37,8 @@ class PriorityTasks(object):
return len(self.lst)
def __iter__(self):
return iter(self.lst)
+ def __str__(self):
+ return 'PriorityTasks: [%s]' % '\n '.join(str(x) for x in self.lst)
def clear(self):
self.lst = []
def append(self, task):
@@ -181,10 +183,12 @@ class Parallel(object):
The reverse dependency graph of dependencies obtained from Task.run_after
"""
- self.spawner = Spawner(self)
+ self.spawner = None
"""
Coordinating daemon thread that spawns thread consumers
"""
+ if self.numjobs > 1:
+ self.spawner = Spawner(self)
def get_next_task(self):
"""
@@ -254,6 +258,8 @@ class Parallel(object):
self.outstanding.append(x)
break
else:
+ if self.stop or self.error:
+ break
raise Errors.WafError('Broken revdeps detected on %r' % self.incomplete)
else:
tasks = next(self.biter)