aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/algorithm.ixx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/algorithm.ixx')
-rw-r--r--libbuild2/algorithm.ixx7
1 files changed, 7 insertions, 0 deletions
diff --git a/libbuild2/algorithm.ixx b/libbuild2/algorithm.ixx
index 9c656fd..c421218 100644
--- a/libbuild2/algorithm.ixx
+++ b/libbuild2/algorithm.ixx
@@ -476,6 +476,13 @@ namespace build2
return t.group;
}
+ inline void
+ inject (action a, target& t, const target& p)
+ {
+ match (a, p);
+ t.prerequisite_targets[a].emplace_back (&p);
+ }
+
LIBBUILD2_SYMEXPORT void
match_prerequisites (action, target&, const match_search&, const scope*);