Skip to content

Commit

Permalink
forward the verbose flag to ninja and otherwise use the quiet flag (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
EclecticGriffin authored May 30, 2024
1 parent 973e4f7 commit a7bc39a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions fud2/fud-core/src/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()?;

Expand Down

0 comments on commit a7bc39a

Please sign in to comment.