diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-05-26 13:10:37 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-05-27 08:40:59 +0200 |
commit | 57e2aaa28e19da1cd4e51982f46ef2630739ff8a (patch) | |
tree | 138a169b29aad630150906ffb4a8f30a5f9bdf5a /libbuild2/target.cxx | |
parent | 29c59165396eb842d92367fca74c4e459ea25900 (diff) |
Wrap up $<, $> variables and related ($target.path(), hashing, cleanup)
Diffstat (limited to 'libbuild2/target.cxx')
-rw-r--r-- | libbuild2/target.cxx | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/libbuild2/target.cxx b/libbuild2/target.cxx index dfd0075..b9cfea7 100644 --- a/libbuild2/target.cxx +++ b/libbuild2/target.cxx @@ -44,11 +44,9 @@ namespace build2 // target_key // - names target_key:: - as_name () const + void target_key:: + as_name (names& r) const { - names r; - string v (*name); target::combine_name (v, ext, false /* @@ TODO: what to do? */); @@ -56,11 +54,9 @@ namespace build2 if (!out->empty ()) { - r.front ().pair = '@'; + r.back ().pair = '@'; r.push_back (build2::name (*out)); } - - return r; } // target_state |