From 86a570c792e692d711dc4dc8530ff54b9980c0a4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 8 Apr 2022 12:12:53 +0200 Subject: Optimize update_during_match() --- libbuild2/target.ixx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libbuild2/target.ixx') 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); -- cgit v1.1