aboutsummaryrefslogtreecommitdiff
path: root/build2/utility.txx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-01-08 11:07:17 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-01-08 11:07:17 +0200
commitf6c3788de3d148c90aba705d045b1d92e7fea20a (patch)
tree3e99d4a3d87ab4f6c68cbfd0060e28b465bee4de /build2/utility.txx
parentf1b3c0e86daec1f5b7ed81a60edbe548fcbb5f42 (diff)
Complete runtime/stdlib detection
Diffstat (limited to 'build2/utility.txx')
-rw-r--r--build2/utility.txx8
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.