From 98c7247ff06decba8130e8aea67ea839d084d2dd Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 7 Nov 2023 07:21:06 +0200 Subject: Account for match options re-locking when checking if target is matched --- libbuild2/algorithm.ixx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libbuild2/algorithm.ixx') diff --git a/libbuild2/algorithm.ixx b/libbuild2/algorithm.ixx index e384433..c7b4b7e 100644 --- a/libbuild2/algorithm.ixx +++ b/libbuild2/algorithm.ixx @@ -614,7 +614,8 @@ namespace build2 inline void match_recipe (target_lock& l, recipe r, uint64_t options) { - assert (l.target != nullptr && + assert (options != 0 && + l.target != nullptr && l.offset < target::offset_matched && l.target->ctx.phase == run_phase::match); -- cgit v1.1