From 9bea2f465cc2b47e06d65d6a29cb0f0f0c37f29c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 29 May 2023 07:56:33 +0200 Subject: Extend special match_rule() logic to all groups with dynamic targets --- libbuild2/dyndep.hxx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'libbuild2/dyndep.hxx') diff --git a/libbuild2/dyndep.hxx b/libbuild2/dyndep.hxx index 07511ee..ee9c1dd 100644 --- a/libbuild2/dyndep.hxx +++ b/libbuild2/dyndep.hxx @@ -232,7 +232,8 @@ namespace build2 // set its path, and match it with group_recipe. // // The file path must be absolute and normalized. Note that this function - // assumes that this member can only be matched via this group. + // assumes that this member can only be matched via this group. The group + // type must have the target_type::flag::dyn_members flag. // // Note: we can split this function into {enter,match}_group_member() // if necessary. @@ -259,9 +260,6 @@ namespace build2 // Note that the filter is skipped if the target is newly inserted (the // filter is meant to be used to skip duplicates). // - // Note that skip_match is an implementation detail and should not be - // used. - // using group_filter_func = bool (mtime_target& g, const file&); static pair @@ -270,8 +268,7 @@ namespace build2 path, const function&, const target_type& fallback, - const function& = nullptr, - bool skip_match = false); + const function& = nullptr); // Find or insert a target file path as a target, make it a member of the -- cgit v1.1