From a7bc39a7e3b5062098db3c3ccc071e48ba7bc0b2 Mon Sep 17 00:00:00 2001 From: Griffin Berlstein Date: Thu, 30 May 2024 17:11:12 -0400 Subject: [PATCH] forward the verbose flag to ninja and otherwise use the quiet flag (#2077) --- fud2/fud-core/src/run.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/fud2/fud-core/src/run.rs b/fud2/fud-core/src/run.rs index d20c9d567e..ab99da1566 100644 --- a/fud2/fud-core/src/run.rs +++ b/fud2/fud-core/src/run.rs @@ -220,6 +220,13 @@ impl<'a> Run<'a> { // Run `ninja` in the working directory. let mut cmd = Command::new(&self.global_config.ninja); cmd.current_dir(&dir.path); + + if !self.global_config.verbose { + cmd.arg("--quiet"); + } else { + cmd.arg("--verbose"); + } + cmd.stdout(std::io::stderr()); // Send Ninja's stdout to our stderr. let status = cmd.status()?;