diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2022-09-23 10:34:36 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2022-09-23 10:34:36 +0200 |
commit | 62e3c70ca0e830e1c29ce0bd09adcebdf41c610d (patch) | |
tree | 13f775d29657404ffd111fb3a9d5eebe15eae4d6 /libbuild2/dist/rule.cxx | |
parent | 7d137fd6a9ceb54574481082e9944de168b06b78 (diff) |
Add $is_a(<name>, <target-type>), $filter[_out](<names>, <target-types>) functions
$is_a() returns true if the <name>'s target type is-a <target-type>. Note
that this is a dynamic type check that takes into account target type
inheritance.
$filter[_out]() return names with target types which are-a (filter) or
not are-a (filter_out) one of <target-types>.
In particular, these functions are useful for filtering prerequisite
targets ($<) in ad hoc recipes and rules.
Diffstat (limited to 'libbuild2/dist/rule.cxx')
0 files changed, 0 insertions, 0 deletions