From 626348009e74d2ec6e9f500d27f60728b4fc81df Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 2 Apr 2015 11:53:01 +0200 Subject: Add command line option to set verbosity level -v sets it to 1 (shows actual command lines) --verbose sets it to any value in the 0-5 range --- build/diagnostics | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'build/diagnostics') diff --git a/build/diagnostics b/build/diagnostics index 68f449b..21e02e2 100644 --- a/build/diagnostics +++ b/build/diagnostics @@ -49,13 +49,16 @@ namespace build // Trace verbosity level. // + // 0 - tracing disabled. // 1 - command lines to update explicit targets (e.g., .o) // 2 - command lines to update implicit targets (e.g., .d) // 3 - things didn't work out (e.g., rule did not match) // 4 - additional information // 5 - more additional information // - extern std::uint8_t verb; + // While uint8 is more than enough, use uint16 for the ease of printing. + // + extern std::uint16_t verb; template inline void level1 (const F& f) {if (verb >= 1) f ();} template inline void level2 (const F& f) {if (verb >= 2) f ();} -- cgit v1.1