From aec5f7309b2ee7210dc39de9c792f35273c73c10 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 24 Jan 2016 12:03:50 +0200 Subject: Differentiate extension printing according to stream verbosity --- build2/dump.cxx | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'build2/dump.cxx') diff --git a/build2/dump.cxx b/build2/dump.cxx index 92985f6..b3d78bb 100644 --- a/build2/dump.cxx +++ b/build2/dump.cxx @@ -88,6 +88,15 @@ namespace build2 static void dump_target (ostream& os, string& ind, action a, const target& t) { + // Print the target and its prerequisites relative to the scope. To achieve + // this we are going to temporarily lower the stream verbosity to level 1. + // The drawback of doing this is that we also lower the verbosity of + // extension printing (it wouldn't have been bad at all to get 'foo.?' for + // unassigned and 'foo.' for empty). + // + uint16_t sv (stream_verb (os)); + stream_verb (os, 1); + os << ind << t; if (t.group != nullptr) @@ -123,6 +132,8 @@ namespace build2 } } + stream_verb (os, sv); // We want variable values in full. + // Print target-specific variables. // if (!t.vars.empty ()) -- cgit v1.1