From 6613fbc2a3fc96b491b6691145c72c5a9550dc84 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 25 Aug 2022 20:54:40 +0300 Subject: Add target to build configuration id --- mod/build-config-module.cxx | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'mod/build-config-module.cxx') diff --git a/mod/build-config-module.cxx b/mod/build-config-module.cxx index 1b1d53e..bf21fbb 100644 --- a/mod/build-config-module.cxx +++ b/mod/build-config-module.cxx @@ -137,22 +137,12 @@ namespace brep bot_agent_key_map_ = shared_bot_agent_keys (bo, bo.build_bot_agent_keys ()); - cstrings conf_names; - - using conf_map_type = map; - + using conf_map_type = map; conf_map_type conf_map; for (const auto& c: *build_conf_) - { - const char* cn (c.name.c_str ()); - conf_map[cn] = &c; - conf_names.push_back (cn); - } + conf_map[build_config_id {c.name, c.target}] = &c; - build_conf_names_ = make_shared (move (conf_names)); build_conf_map_ = make_shared (move (conf_map)); } -- cgit v1.1