aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/utility.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-11-08 00:17:47 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-11-11 18:41:06 +0300
commit07e0d37aba5cd72ff2d53eda654a4d5466e38627 (patch)
tree80ab6452b0fc489833fb911926ca872e51ec1575 /libbuild2/utility.cxx
parent5935476651cd063a53d08ec33b04513a7a8127e3 (diff)
Use path_name for `-` to stdin/stdout translation
Diffstat (limited to 'libbuild2/utility.cxx')
-rw-r--r--libbuild2/utility.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/libbuild2/utility.cxx b/libbuild2/utility.cxx
index b7637f5..528b435 100644
--- a/libbuild2/utility.cxx
+++ b/libbuild2/utility.cxx
@@ -47,6 +47,8 @@ namespace std
ostream&
operator<< (ostream& os, const ::butl::path_name& pn)
{
+ assert (!pn.empty ());
+
return pn.name ? (os << *pn.name) : (os << *pn.path);
}
@@ -117,9 +119,6 @@ namespace build2
string
diag_relative (const path& p, bool cur)
{
- if (p.string () == "-") // @@ PATH_NAME: remove
- return "<stdin>";
-
const path& b (*relative_base);
if (p.absolute ())