aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/algorithm.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2024-01-11 07:14:12 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2024-01-11 07:14:12 +0200
commitd853d416fd3ad00c283c54fd09a881dbb50e52f5 (patch)
tree3e8b2837be14cd419c6be81b32568a2a31f69424 /libbuild2/algorithm.cxx
parent7197d069cb82286f9789a8ce987fe5f0f5b6f05d (diff)
Properly split injected ad hoc group member name in regex pattern rule
Diffstat (limited to 'libbuild2/algorithm.cxx')
-rw-r--r--libbuild2/algorithm.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/libbuild2/algorithm.cxx b/libbuild2/algorithm.cxx
index 8b7aa28..df8e650 100644
--- a/libbuild2/algorithm.cxx
+++ b/libbuild2/algorithm.cxx
@@ -364,7 +364,8 @@ namespace build2
const target_type& tt,
dir_path dir,
dir_path out,
- string n)
+ string n,
+ optional<string> ext)
{
tracer trace ("add_adhoc_member");
@@ -381,7 +382,7 @@ namespace build2
move (dir),
move (out),
move (n),
- nullopt /* ext */,
+ move (ext),
target_decl::implied,
trace,
true /* skip_find */));