From 38943a2ecd79d2af18491a6c994c983aa5a35b97 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 19 Apr 2023 22:09:44 +0300 Subject: Add support for package-specific config vars in package build config in worker --- bbot/worker/worker.cxx | 470 ++++++++++++++++++++++++++++++------------------- 1 file changed, 284 insertions(+), 186 deletions(-) (limited to 'bbot') diff --git a/bbot/worker/worker.cxx b/bbot/worker/worker.cxx index 9ca549c..0c159f6 100644 --- a/bbot/worker/worker.cxx +++ b/bbot/worker/worker.cxx @@ -1022,6 +1022,9 @@ build (size_t argc, const char* argv[]) using string_parser::unquote; + using std::map; + using std::multimap; + tracer trace ("build"); // Our overall plan is as follows: @@ -1238,7 +1241,7 @@ build (size_t argc, const char* argv[]) // Keep track of explicitly enabled/disabled steps. // - std::map step_statuses; + map step_statuses; // Return true if the step is explicitly enabled via a +:[] // environment/configuration argument. @@ -1285,8 +1288,8 @@ build (size_t argc, const char* argv[]) // Parse environment arguments. // - std::multimap modules; - std::multimap env_args; + multimap modules; + multimap env_args; for (size_t i (1); i != argc; ++i) { @@ -1325,7 +1328,7 @@ build (size_t argc, const char* argv[]) // Parse target configuration arguments. Report failures to the bbot // controller. // - std::multimap tgt_args; + multimap tgt_args; for (const string& c: tm.target_config) { @@ -1363,28 +1366,51 @@ build (size_t argc, const char* argv[]) // separated list of the following potentially quoted bpkg-pkg-build // command arguments: // - //