diff options
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); |