diff options
author | Henner Zeller <h.zeller@acm.org> | 2020-07-20 12:39:07 -0700 |
---|---|---|
committer | Eli Ribble <eliribble@google.com> | 2021-05-06 09:22:26 -0700 |
commit | a567ebb6ef75bfda9204900e4fcbcd7ee2785f61 (patch) | |
tree | 053a1fdb429f56ee27677454f6c8400f70e50c14 /src/status.cc | |
parent | ce700488e01af33bc478bc986e261e306180b993 (diff) | |
download | ninja-a567ebb6ef75bfda9204900e4fcbcd7ee2785f61.tar.gz |
Add --quiet option that suppresses status updates.
Refined pull request after discussion in #1816
Signed-off-by: Henner Zeller <h.zeller@acm.org>
Diffstat (limited to 'src/status.cc')
-rw-r--r-- | src/status.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/status.cc b/src/status.cc index 171cbeb..88b7781 100644 --- a/src/status.cc +++ b/src/status.cc @@ -228,7 +228,8 @@ string StatusPrinter::FormatProgressStatus(const char* progress_status_format, } void StatusPrinter::PrintStatus(const Edge* edge, int64_t time_millis) { - if (config_.verbosity == BuildConfig::QUIET) + if (config_.verbosity == BuildConfig::QUIET + || config_.verbosity == BuildConfig::NO_STATUS_UPDATE) return; bool force_full_command = config_.verbosity == BuildConfig::VERBOSE; |