From 899ac9be4de6884b409d236297353a7bf6517d95 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 23 Jul 2019 14:35:58 +0300 Subject: Increase verbosity level of build2 create/configure meta-operations run by worker from -v to -V --- bbot/worker/worker.cxx | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'bbot/worker/worker.cxx') 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)...); + verbosity, buildspecs, forward (a)...); } template @@ -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)...); + verbosity, buildspec, forward (a)...); } template 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)...); + return run_b (t, + log, warn_detect, + envvars, + verbosity, + buildspec, forward (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)); -- cgit v1.1