diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2023-11-07 07:21:06 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2023-11-07 07:21:06 +0200 |
commit | 98c7247ff06decba8130e8aea67ea839d084d2dd (patch) | |
tree | fea6d2a7f5172c78992ccada6229db86cc1e10b2 /libbuild2/algorithm.ixx | |
parent | a8ff78d8b90d6f7a45c9586449986dadb65809c8 (diff) |
Account for match options re-locking when checking if target is matched
Diffstat (limited to 'libbuild2/algorithm.ixx')
-rw-r--r-- | libbuild2/algorithm.ixx | 3 |
1 files changed, 2 insertions, 1 deletions
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); |