diff options
Diffstat (limited to 'build2/utility.txx')
-rw-r--r-- | build2/utility.txx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/build2/utility.txx b/build2/utility.txx index 6ca245f..cea44ad 100644 --- a/build2/utility.txx +++ b/build2/utility.txx @@ -58,14 +58,18 @@ namespace build2 template <typename T, typename F> T - run (const process_path& pp, + run (uint16_t verbosity, + const process_path& pp, const char* args[], F&& f, bool err, bool ignore_exit, sha256* checksum) { - process pr (run_start (pp, args, -1 /* stdout */, err)); + if (verb >= verbosity) + print_process (args, 0); + + process pr (run_start (pp, args, 0 /* stdin */, -1 /* stdout */, err)); T r; string l; // Last line of output. |