mirror of
https://github.com/ninja-build/ninja.git
synced 2026-08-09 01:21:54 +00:00
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.
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user