aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/target.txx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/target.txx')
-rw-r--r--libbuild2/target.txx10
1 files changed, 6 insertions, 4 deletions
diff --git a/libbuild2/target.txx b/libbuild2/target.txx
index 777653a..d304daa 100644
--- a/libbuild2/target.txx
+++ b/libbuild2/target.txx
@@ -28,11 +28,13 @@ namespace build2
return;
}
- if (g_.count != 0) // Skip empty see through groups.
- {
- j_ = 1; // Start from the first group member.
+ // Skip empty see through groups.
+ //
+ for (j_ = 1; j_ <= g_.count && g_.members[j_ - 1] == nullptr; ++j_) ;
+ if (j_ <= g_.count)
break;
- }
+
+ g_.count = 0;
}
while (++i_ != r_->e_ && i_->type.see_through);
}