aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/variable.ixx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/variable.ixx')
-rw-r--r--libbuild2/variable.ixx20
1 files changed, 19 insertions, 1 deletions
diff --git a/libbuild2/variable.ixx b/libbuild2/variable.ixx
index 50cce78..84bf20c 100644
--- a/libbuild2/variable.ixx
+++ b/libbuild2/variable.ixx
@@ -614,7 +614,7 @@ namespace build2
inline void value_traits<process_path>::
assign (value& v, process_path&& x)
{
- // Convert the value to its "self-sufficient" form.
+ // Convert the value to its "self-sufficient" form (see also below).
//
if (x.recall.empty ())
x.recall = path (x.initial);
@@ -638,6 +638,24 @@ namespace build2
return r;
}
+ // process_path_ex value
+ //
+ inline void value_traits<process_path_ex>::
+ assign (value& v, process_path_ex&& x)
+ {
+ // Convert the value to its "self-sufficient" form (see also above).
+ //
+ if (x.recall.empty ())
+ x.recall = path (x.initial);
+
+ x.initial = x.recall.string ().c_str ();
+
+ if (v)
+ v.as<process_path_ex> () = move (x);
+ else
+ new (&v.data_) process_path_ex (move (x));
+ }
+
// target_triplet value
//
inline void value_traits<target_triplet>::