diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-01-24 12:03:50 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-01-24 12:03:50 +0200 |
commit | aec5f7309b2ee7210dc39de9c792f35273c73c10 (patch) | |
tree | 039064cbccb9ef01a5b93ca1659ae05137e61d3f /build2/dump.cxx | |
parent | 4b507ea962169a8d19e4b37b940448eba97d87a4 (diff) |
Differentiate extension printing according to stream verbosity
Diffstat (limited to 'build2/dump.cxx')
-rw-r--r-- | build2/dump.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
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 ()) |