@@ -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,
@@ -101,7 +101,9 @@ pub struct Config {
101
101
pub bootstrap_cache_path : Option < PathBuf > ,
102
102
pub extended : bool ,
103
103
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 > ,
105
107
pub sanitizers : bool ,
106
108
pub profiler : bool ,
107
109
pub omit_git_hash : bool ,
@@ -677,7 +679,7 @@ impl Config {
677
679
bootstrap_cache_path,
678
680
extended,
679
681
tools,
680
- tool_config ,
682
+ tool ,
681
683
verbose,
682
684
sanitizers,
683
685
profiler,
@@ -824,7 +826,7 @@ impl Config {
824
826
set ( & mut config. full_bootstrap , full_bootstrap) ;
825
827
set ( & mut config. extended , extended) ;
826
828
config. tools = tools;
827
- set ( & mut config. tool_config , tool_config ) ;
829
+ set ( & mut config. tool , tool ) ;
828
830
set ( & mut config. verbose , verbose) ;
829
831
set ( & mut config. sanitizers , sanitizers) ;
830
832
set ( & mut config. profiler , profiler) ;
0 commit comments