From 3d39584285e4b39e7290bea9b2e4006cd1cf8a10 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 13 Feb 2024 13:00:09 +0200 Subject: Add ability to omit matching in inject_fsdir() --- libbuild2/algorithm.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libbuild2/algorithm.cxx') 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); } -- cgit v1.1