aboutsummaryrefslogtreecommitdiff
path: root/build/test
diff options
context:
space:
mode:
Diffstat (limited to 'build/test')
-rw-r--r--build/test/rule.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/build/test/rule.cxx b/build/test/rule.cxx
index 6e82d8d..30de93c 100644
--- a/build/test/rule.cxx
+++ b/build/test/rule.cxx
@@ -210,7 +210,10 @@ namespace build
build::match (a, *it);
if (it->state () == target_state::unchanged)
+ {
+ unmatch (a, *it);
it = nullptr;
+ }
}
if (ot != nullptr && in == on)
@@ -218,7 +221,10 @@ namespace build
build::match (a, *ot);
if (ot->state () == target_state::unchanged)
+ {
+ unmatch (a, *ot);
ot = nullptr;
+ }
}
else
ot = it;