From e8ac4ba55583853828a04b045c31c7e59334ab75 Mon Sep 17 00:00:00 2001 From: Thomas Nagy Date: Thu, 20 Apr 2017 23:28:39 +0200 Subject: [PATCH] Ensure bld.current_group reflects the current group while building --- waflib/Build.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/waflib/Build.py b/waflib/Build.py index 78698c6f..f3fb13c7 100644 --- a/waflib/Build.py +++ b/waflib/Build.py @@ -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):