aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/target.ixx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-04-08 12:12:53 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-04-08 12:12:53 +0200
commit86a570c792e692d711dc4dc8530ff54b9980c0a4 (patch)
treec07e64d417872c29bebc31037b780558be06d5ff /libbuild2/target.ixx
parent230e7cb0bab4582132de2bc411e355eacbacff4a (diff)
Optimize update_during_match()
Diffstat (limited to 'libbuild2/target.ixx')
-rw-r--r--libbuild2/target.ixx4
1 files changed, 3 insertions, 1 deletions
diff --git a/libbuild2/target.ixx b/libbuild2/target.ixx
index af75cd1..ecc16c4 100644
--- a/libbuild2/target.ixx
+++ b/libbuild2/target.ixx
@@ -302,7 +302,9 @@ namespace build2
return make_pair (false, target_state::unknown);
else
{
- // Normally applied but can also be already executed.
+ // Normally applied but can also be already executed. Note that in the
+ // latter case we are guaranteed to be synchronized since we are in the
+ // match phase.
//
assert (o == offset_applied || o == offset_executed);
return make_pair (true, (group_state (a) ? group->state[a] : s).state);