diff options
author | David Robillard <d@drobilla.net> | 2019-03-17 17:31:04 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-03-17 18:14:27 +0100 |
commit | a31cace29a936dfff80c16d25a5c24d783c9611f (patch) | |
tree | 9a5aa34548658092800c7f9fc799170500c5e55e /waflib/Runner.py | |
parent | 04129c016c366332c89b7068b11b37c0843e20eb (diff) | |
parent | 619946be846e7cfa9b79ccd433746f172ccdefc3 (diff) | |
download | sratom-a31cace29a936dfff80c16d25a5c24d783c9611f.tar.gz sratom-a31cace29a936dfff80c16d25a5c24d783c9611f.tar.bz2 sratom-a31cace29a936dfff80c16d25a5c24d783c9611f.zip |
Update autowaf and adapt to new API
Diffstat (limited to 'waflib/Runner.py')
-rw-r--r-- | waflib/Runner.py | 8 |
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) |