diff options
-rw-r--r-- | build2/target.cxx | 14 |
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; } |