diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2024-01-11 07:14:12 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2024-01-11 07:14:12 +0200 |
commit | d853d416fd3ad00c283c54fd09a881dbb50e52f5 (patch) | |
tree | 3e8b2837be14cd419c6be81b32568a2a31f69424 /libbuild2/algorithm.hxx | |
parent | 7197d069cb82286f9789a8ce987fe5f0f5b6f05d (diff) |
Properly split injected ad hoc group member name in regex pattern rule
Diffstat (limited to 'libbuild2/algorithm.hxx')
-rw-r--r-- | libbuild2/algorithm.hxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libbuild2/algorithm.hxx b/libbuild2/algorithm.hxx index c6fb1c2..2c57b74 100644 --- a/libbuild2/algorithm.hxx +++ b/libbuild2/algorithm.hxx @@ -285,10 +285,12 @@ namespace build2 const target_type&, dir_path dir, dir_path out, - string name); + string name, + optional<string> ext); // If the extension is specified then it is added to the member's target - // name. + // name as a second-level extension (the first-level extension, if any, + // comes from the target type). // target& add_adhoc_member (target&, const target_type&, const char* ext = nullptr); |