aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/target.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-11-14 10:50:41 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-11-14 10:50:41 +0300
commit62a688e3fd7d1fdb8ce5590ebe9cb99e90cbe5d7 (patch)
tree7c134dfb04815fb41c22d150fe1e481916536888 /libbuild2/target.cxx
parentc03fc4a34ad47f5951633f1e9602b250c53c1927 (diff)
Make use of butl::to_stream(ostream, path, bool)
Diffstat (limited to 'libbuild2/target.cxx')
-rw-r--r--libbuild2/target.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/libbuild2/target.cxx b/libbuild2/target.cxx
index e4218ed..23e6c9c 100644
--- a/libbuild2/target.cxx
+++ b/libbuild2/target.cxx
@@ -506,7 +506,7 @@ namespace build2
if (dv < 1)
os << diag_relative (pd);
else
- os << pd.representation ();
+ to_stream (os, pd, true /* representation */);
}
const target_type& tt (*k.type);
@@ -535,7 +535,9 @@ namespace build2
assert (!k.ext);
}
else
- os << (rd.empty () ? dir_path (".") : rd.leaf ()).representation ();
+ to_stream (os,
+ rd.empty () ? dir_path (".") : rd.leaf (),
+ true /* representation */);
os << '}';