From a590e18b577cc3fd2890a96b6939504e3f32cbdc Mon Sep 17 00:00:00 2001 From: Tamino Bauknecht Date: Tue, 24 Oct 2023 18:22:02 +0200 Subject: Do not print 'no work to do' with --quiet --- src/ninja.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ninja.cc b/src/ninja.cc index 39672c3..c011be1 100644 --- a/src/ninja.cc +++ b/src/ninja.cc @@ -1366,7 +1366,9 @@ int NinjaMain::RunBuild(int argc, char** argv, Status* status) { disk_interface_.AllowStatCache(false); if (builder.AlreadyUpToDate()) { - status->Info("no work to do."); + if (config_.verbosity != BuildConfig::NO_STATUS_UPDATE) { + status->Info("no work to do."); + } return 0; } -- cgit v0.12