diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2024-02-13 13:00:09 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2024-02-13 13:00:09 +0200 |
commit | 3d39584285e4b39e7290bea9b2e4006cd1cf8a10 (patch) | |
tree | b9c1099f1ae4b93e85263821a3d28a29f39cbad0 /libbuild2/algorithm.cxx | |
parent | 8a23835baa00f0079dbcd259c04ffeb87a764568 (diff) |
Add ability to omit matching in inject_fsdir()
Diffstat (limited to 'libbuild2/algorithm.cxx')
-rw-r--r-- | libbuild2/algorithm.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libbuild2/algorithm.cxx b/libbuild2/algorithm.cxx index 2abf391..87217f7 100644 --- a/libbuild2/algorithm.cxx +++ b/libbuild2/algorithm.cxx @@ -1903,16 +1903,18 @@ namespace build2 } const fsdir* - inject_fsdir (action a, target& t, bool prereq, bool parent) + inject_fsdir (action a, target& t, bool match, bool prereq, bool parent) { const fsdir* r (inject_fsdir_impl (t, prereq, parent)); if (r != nullptr) { + if (match) + match_sync (a, *r); + // Make it ad hoc so that it doesn't end up in prerequisite_targets // after execution. // - match_sync (a, *r); t.prerequisite_targets[a].emplace_back (r, include_type::adhoc); } |