aboutsummaryrefslogtreecommitdiff
path: root/build/algorithm.ixx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-08-03 13:10:28 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-08-03 13:10:28 +0200
commit0db17bfec8b3b6c436f3c9c346d17d98458c3654 (patch)
treec9dcd1d7678972b0a40450b21a7d23dd6ec1121b /build/algorithm.ixx
parent3a2efbc3d33c70aa5d0a87c9a1d16b458541bdde (diff)
match_only and dependents count rework, part 1
Diffstat (limited to 'build/algorithm.ixx')
-rw-r--r--build/algorithm.ixx7
1 files changed, 7 insertions, 0 deletions
diff --git a/build/algorithm.ixx b/build/algorithm.ixx
index 26761bf..ce581c5 100644
--- a/build/algorithm.ixx
+++ b/build/algorithm.ixx
@@ -62,6 +62,13 @@ namespace build
t.dependents++;
}
+ inline void
+ match_only (action a, target& t)
+ {
+ if (!t.recipe (a))
+ match_impl (a, t, false);
+ }
+
inline std::pair<recipe, action>
match_delegate (action a, target& t)
{