aboutsummaryrefslogtreecommitdiff
path: root/build2/algorithm.ixx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-04-23 14:25:58 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-04-26 09:38:09 +0200
commitf98262e37f608330fcfce799dcacc6fbacac8f8a (patch)
tree080ef26d80ee6419ef3a2f27434d75136f502cb2 /build2/algorithm.ixx
parentc414abe13450e2b4e204f6368ba83c8916de1ebd (diff)
Implement forwarded configurations and backlinking
Diffstat (limited to 'build2/algorithm.ixx')
-rw-r--r--build2/algorithm.ixx14
1 files changed, 14 insertions, 0 deletions
diff --git a/build2/algorithm.ixx b/build2/algorithm.ixx
index 7572548..12dc2da 100644
--- a/build2/algorithm.ixx
+++ b/build2/algorithm.ixx
@@ -240,6 +240,20 @@ namespace build2
return r;
}
+ inline target_lock
+ add_adhoc_member (action a, target& t, const target_type& tt, const char* s)
+ {
+ string n (t.name);
+
+ if (s != nullptr)
+ {
+ n += '.';
+ n += s;
+ }
+
+ return add_adhoc_member (a, t, tt, t.dir, t.out, n);
+ }
+
const rule_match*
match_impl (action, target&, const rule* skip, bool try_match = false);