@@ -35,7 +35,7 @@ pub use crate::core::config::flags::Subcommand;
35
35
use crate :: core:: config:: flags:: { Color , Flags } ;
36
36
use crate :: core:: config:: target_selection:: TargetSelectionList ;
37
37
use crate :: core:: config:: toml:: TomlConfig ;
38
- use crate :: core:: config:: toml:: build:: { Build , ToolConfig } ;
38
+ use crate :: core:: config:: toml:: build:: { Build , Tool } ;
39
39
use crate :: core:: config:: toml:: change_id:: ChangeId ;
40
40
use crate :: core:: config:: toml:: rust:: {
41
41
LldMode , RustOptimize , check_incompatible_options_for_ci_rustc,
@@ -114,7 +114,9 @@ pub struct Config {
114
114
pub bootstrap_cache_path : Option < PathBuf > ,
115
115
pub extended : bool ,
116
116
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 > ,
118
120
pub sanitizers : bool ,
119
121
pub profiler : bool ,
120
122
pub omit_git_hash : bool ,
@@ -690,7 +692,7 @@ impl Config {
690
692
bootstrap_cache_path,
691
693
extended,
692
694
tools,
693
- tool_config ,
695
+ tool ,
694
696
verbose,
695
697
sanitizers,
696
698
profiler,
@@ -837,7 +839,7 @@ impl Config {
837
839
set ( & mut config. full_bootstrap , full_bootstrap) ;
838
840
set ( & mut config. extended , extended) ;
839
841
config. tools = tools;
840
- set ( & mut config. tool_config , tool_config ) ;
842
+ set ( & mut config. tool , tool ) ;
841
843
set ( & mut config. verbose , verbose) ;
842
844
set ( & mut config. sanitizers , sanitizers) ;
843
845
set ( & mut config. profiler , profiler) ;
0 commit comments