Ensure bld.current_group reflects the current group while building

This commit is contained in:
Thomas Nagy 2017-04-20 23:28:39 +02:00
parent 8c3cca3284
commit e8ac4ba555
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA
1 changed files with 3 additions and 3 deletions

View File

@ -840,12 +840,12 @@ class BuildContext(Context.Context):
Task.set_precedence_constraints(tasks)
self.cur_tasks = tasks
if tasks:
yield tasks
self.current_group += 1
if not tasks: # return something else the build will stop
continue
yield tasks
while 1:
# the build stops once there are no tasks to process
yield []
def install_files(self, dest, files, **kw):