diff options
author | Eli Ribble <eliribble@google.com> | 2021-05-06 16:23:44 (GMT) |
---|---|---|
committer | Eli Ribble <eliribble@google.com> | 2021-05-06 16:26:40 (GMT) |
commit | 770459d26f9985e4dbe4bdb1223bd21834458d4e (patch) | |
tree | 9bc87f5d4f16600d2e8de3f169e7e2ab52d2396e /src | |
parent | 21a0834e897ef0dda6bf5509e92c000808ae8e09 (diff) | |
download | Ninja-770459d26f9985e4dbe4bdb1223bd21834458d4e.zip Ninja-770459d26f9985e4dbe4bdb1223bd21834458d4e.tar.gz Ninja-770459d26f9985e4dbe4bdb1223bd21834458d4e.tar.bz2 |
Add jhasse's suggestion to suppress output on '--quiet'.
This just ensures that we also don't get the "Entering directory..." message
when the new '--quiet' flag is added.
Diffstat (limited to 'src')
-rw-r--r-- | src/ninja.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ninja.cc b/src/ninja.cc index 759ccd7..c7182df 100644 --- a/src/ninja.cc +++ b/src/ninja.cc @@ -1419,7 +1419,7 @@ NORETURN void real_main(int argc, char** argv) { // subsequent commands. // Don't print this if a tool is being used, so that tool output // can be piped into a file without this string showing up. - if (!options.tool) + if (!options.tool && config.verbosity != BuildConfig::NO_STATUS_UPDATE) status->Info("Entering directory `%s'", options.working_dir); if (chdir(options.working_dir) < 0) { Fatal("chdir to '%s' - %s", options.working_dir, strerror(errno)); |