aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-07-28 16:37:50 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-07-28 16:37:50 +0200
commit150bf0a18baab913c01fd1fa5f431455c35c99e1 (patch)
treedcc2a3e056747cbafe924092ed864dc9f2f84865
parent07ed482f1ad14eb314a17b108f91484e894e5207 (diff)
Improve target out directory printing
-rw-r--r--build2/target.cxx14
1 files changed, 13 insertions, 1 deletions
diff --git a/build2/target.cxx b/build2/target.cxx
index b0fc92d..d9dd12e 100644
--- a/build2/target.cxx
+++ b/build2/target.cxx
@@ -289,7 +289,19 @@ namespace build2
// If this target is from src, print its out.
//
if (!k.out->empty ())
- os << '@' << diag_relative (*k.out, false); // Don't print './'.
+ {
+ if (stream_verb (os) < 2)
+ {
+ // Don't print '@./'.
+ //
+ const string& o (diag_relative (*k.out, false));
+
+ if (!o.empty ())
+ os << '@' << o;
+ }
+ else
+ os << '@' << k.out;
+ }
return os;
}