aboutsummaryrefslogtreecommitdiff
path: root/build2/cli
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-04-21 12:18:15 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-04-21 12:18:15 +0200
commit6082d76936b8a65380eb7af03b4167d8f0298158 (patch)
tree4cfadd3f54c134a1a45086ad15015a88b902ffba /build2/cli
parent0165fa7178319bb250be1882b3b457232236c820 (diff)
Implement short-circuiting to group state
This is necessary to get rid of bogus restarts in inject_prerequisites() where it think a group member was updated since its state changed from unknown to (group's) changed.
Diffstat (limited to 'build2/cli')
-rw-r--r--build2/cli/rule.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/build2/cli/rule.cxx b/build2/cli/rule.cxx
index 65e940b..d986eca 100644
--- a/build2/cli/rule.cxx
+++ b/build2/cli/rule.cxx
@@ -108,13 +108,13 @@ namespace build2
//
target& t (xt);
- // First see if we are already linked-up to the cli.cxx{} group.
- // If it is some other group, then we are definitely not a match.
+ // First see if we are already linked-up to the cli.cxx{} group. If
+ // it is some other group, then we are definitely not a match.
//
if (t.group != nullptr)
return t.group->is_a<cli_cxx> ();
- // Then check if there is a corresponding cli.cxx{} group.
+ // Check if there is a corresponding cli.cxx{} group.
//
cli_cxx* g (targets.find<cli_cxx> (t.dir, t.out, t.name));
@@ -147,8 +147,8 @@ namespace build2
if (g != nullptr)
{
- // Resolve the group's members. This should link us up to
- // the group.
+ // Resolve the group's members. This should link us up to the
+ // group.
//
resolve_group_members (a, *g);