@@ -35,7 +35,7 @@ pub use crate::core::config::flags::Subcommand;
3535use  crate :: core:: config:: flags:: { Color ,  Flags } ; 
3636use  crate :: core:: config:: target_selection:: TargetSelectionList ; 
3737use  crate :: core:: config:: toml:: TomlConfig ; 
38- use  crate :: core:: config:: toml:: build:: { Build ,  ToolConfig } ; 
38+ use  crate :: core:: config:: toml:: build:: { Build ,  Tool } ; 
3939use  crate :: core:: config:: toml:: change_id:: ChangeId ; 
4040use  crate :: core:: config:: toml:: rust:: { 
4141    LldMode ,  RustOptimize ,  check_incompatible_options_for_ci_rustc, 
@@ -114,7 +114,9 @@ pub struct Config {
114114    pub  bootstrap_cache_path :  Option < PathBuf > , 
115115    pub  extended :  bool , 
116116    pub  tools :  Option < HashSet < String > > , 
117-     pub  tool_config :  HashMap < String ,  ToolConfig > , 
117+     /// Specify build configuration specific for some tool, such as enabled features, see [Tool]. 
118+ /// The key in the map is the name of the tool, and the value is tool-specific configuration. 
119+ pub  tool :  HashMap < String ,  Tool > , 
118120    pub  sanitizers :  bool , 
119121    pub  profiler :  bool , 
120122    pub  omit_git_hash :  bool , 
@@ -690,7 +692,7 @@ impl Config {
690692            bootstrap_cache_path, 
691693            extended, 
692694            tools, 
693-             tool_config , 
695+             tool , 
694696            verbose, 
695697            sanitizers, 
696698            profiler, 
@@ -837,7 +839,7 @@ impl Config {
837839        set ( & mut  config. full_bootstrap ,  full_bootstrap) ; 
838840        set ( & mut  config. extended ,  extended) ; 
839841        config. tools  = tools; 
840-         set ( & mut  config. tool_config ,  tool_config ) ; 
842+         set ( & mut  config. tool ,  tool ) ; 
841843        set ( & mut  config. verbose ,  verbose) ; 
842844        set ( & mut  config. sanitizers ,  sanitizers) ; 
843845        set ( & mut  config. profiler ,  profiler) ; 
0 commit comments