aboutsummaryrefslogtreecommitdiff
path: root/build2/utility.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-12-16 14:14:15 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-12-16 14:14:15 +0200
commit530e8914ba00ce0e7ee89ba30d2b88f2c09f43c9 (patch)
tree0ca06c48d30ae06d8407da34bd02c57140b71062 /build2/utility.cxx
parent44e1022f8141bd57756c2be4277c728ca7443eb3 (diff)
Split stream verbosity into components (path, extension)
Use to make sure structured result output always contains absolute target path.
Diffstat (limited to 'build2/utility.cxx')
-rw-r--r--build2/utility.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/build2/utility.cxx b/build2/utility.cxx
index d11b46d..df19b92 100644
--- a/build2/utility.cxx
+++ b/build2/utility.cxx
@@ -38,7 +38,7 @@ namespace std
{
using namespace build2;
- return os << (stream_verb (os) < 2
+ return os << (stream_verb (os).path < 1
? diag_relative (p)
: p.representation ());
}