@@ -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,
@@ -101,7 +101,9 @@ pub struct Config {
101101 pub bootstrap_cache_path : Option < PathBuf > ,
102102 pub extended : bool ,
103103 pub tools : Option < HashSet < String > > ,
104- pub tool_config : HashMap < String , ToolConfig > ,
104+ /// Specify build configuration specific for some tool, such as enabled features, see [Tool].
105+ /// The key in the map is the name of the tool, and the value is tool-specific configuration.
106+ pub tool : HashMap < String , Tool > ,
105107 pub sanitizers : bool ,
106108 pub profiler : bool ,
107109 pub omit_git_hash : bool ,
@@ -677,7 +679,7 @@ impl Config {
677679 bootstrap_cache_path,
678680 extended,
679681 tools,
680- tool_config ,
682+ tool ,
681683 verbose,
682684 sanitizers,
683685 profiler,
@@ -824,7 +826,7 @@ impl Config {
824826 set ( & mut config. full_bootstrap , full_bootstrap) ;
825827 set ( & mut config. extended , extended) ;
826828 config. tools = tools;
827- set ( & mut config. tool_config , tool_config ) ;
829+ set ( & mut config. tool , tool ) ;
828830 set ( & mut config. verbose , verbose) ;
829831 set ( & mut config. sanitizers , sanitizers) ;
830832 set ( & mut config. profiler , profiler) ;
0 commit comments