aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/target.ixx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-07-19 08:25:35 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-07-19 08:25:35 +0200
commitf0e0c9ce34310070f7a7547d9262deef59751407 (patch)
tree6534503e02b0fac9f88e7ea9ade195fe26afda36 /libbuild2/target.ixx
parent1db478cb8a51cd0adc44b66e7ec10fd44261adf2 (diff)
Fix bug in target::matched()
Diffstat (limited to 'libbuild2/target.ixx')
-rw-r--r--libbuild2/target.ixx7
1 files changed, 6 insertions, 1 deletions
diff --git a/libbuild2/target.ixx b/libbuild2/target.ixx
index 5432f7c..899e829 100644
--- a/libbuild2/target.ixx
+++ b/libbuild2/target.ixx
@@ -245,7 +245,12 @@ namespace build2
if (ctx.phase == run_phase::match)
{
- return c == offset_applied;
+ // While it will normally be applied, it could also be already executed.
+ //
+ // Note that we can't do >= offset_applied since offset_busy means it is
+ // being matched.
+ //
+ return c == offset_applied || c == offset_executed;
}
else
{