aboutsummaryrefslogtreecommitdiff
path: root/bbot/worker/worker.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-07-23 14:35:58 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-07-24 17:15:12 +0300
commit899ac9be4de6884b409d236297353a7bf6517d95 (patch)
tree524707d7ae86f713d781371e48a97be457674d72 /bbot/worker/worker.cxx
parent6c655348340677facbb60d31d0d8e3283ae0ac5a (diff)
Increase verbosity level of build2 create/configure meta-operations run by worker from -v to -V
Diffstat (limited to 'bbot/worker/worker.cxx')
-rw-r--r--bbot/worker/worker.cxx20
1 files changed, 16 insertions, 4 deletions
diff --git a/bbot/worker/worker.cxx b/bbot/worker/worker.cxx
index 534670c..fc632ca 100644
--- a/bbot/worker/worker.cxx
+++ b/bbot/worker/worker.cxx
@@ -212,6 +212,7 @@ static result_status
run_b (tracer& t,
string& log, const regexes& warn_detect,
const V& envvars,
+ const char* verbosity,
const strings& buildspecs, A&&... a)
{
string name ("b");
@@ -227,7 +228,7 @@ run_b (tracer& t,
log, warn_detect,
name,
process_env ("b", envvars),
- "-v", buildspecs, forward<A> (a)...);
+ verbosity, buildspecs, forward<A> (a)...);
}
template <typename V, typename... A>
@@ -235,23 +236,29 @@ static result_status
run_b (tracer& t,
string& log, const regexes& warn_detect,
const V& envvars,
+ const char* verbosity,
const string& buildspec, A&&... a)
{
return run_cmd (t,
log, warn_detect,
"b " + buildspec,
process_env ("b", envvars),
- "-v", buildspec, forward<A> (a)...);
+ verbosity, buildspec, forward<A> (a)...);
}
template <typename... A>
static result_status
run_b (tracer& t,
string& log, const regexes& warn_detect,
+ const char* verbosity,
const string& buildspec, A&&... a)
{
const char* const* envvars (nullptr);
- return run_b (t, log, warn_detect, envvars, buildspec, forward<A> (a)...);
+ return run_b (t,
+ log, warn_detect,
+ envvars,
+ verbosity,
+ buildspec, forward<A> (a)...);
}
static int bbot::
@@ -505,6 +512,7 @@ build (size_t argc, const char* argv[])
r.status |= run_bpkg (
trace, r.log, wre,
"create",
+ "--build-option", "-V",
"-d", build_dir.string (),
"--wipe",
step_args (modules, step_id::bpkg_configure_create),
@@ -567,6 +575,7 @@ build (size_t argc, const char* argv[])
r.status |= run_bpkg (
trace, r.log, wre,
"build",
+ "--build-option", "-V",
"--configure-only",
"--yes",
step_args (config_args, step_id::bpkg_configure_build),
@@ -762,6 +771,7 @@ build (size_t argc, const char* argv[])
r.status |= run_b (
trace, r.log, wre,
+ "-V",
"create(" + out_dir.representation () + mods + ")",
step_args (config_args, step_id::b_test_installed_create),
step_args (env_args, step_id::b_test_installed_create));
@@ -804,8 +814,9 @@ build (size_t argc, const char* argv[])
r.status |= run_b (
trace, r.log, wre,
envvars,
+ "-V",
"configure(" +
- subprj_src_dir.representation () + '@' +
+ subprj_src_dir.representation () + '@' +
subprj_out_dir.representation () + ")",
step_args (config_args, step_id::b_test_installed_configure),
step_args (env_args, step_id::b_test_installed_configure));
@@ -831,6 +842,7 @@ build (size_t argc, const char* argv[])
r.status |= run_b (
trace, r.log, wre,
envvars,
+ "-v",
test_specs,
step_args (config_args, step_id::b_test_installed_test),
step_args (env_args, step_id::b_test_installed_test));