Do not build tools if user do not want them
This commit is contained in:
parent
8d67f576b5
commit
9296d3ba82
1 changed files with 9 additions and 1 deletions
|
|
@ -607,7 +607,15 @@ macro_rules! tool_extended {
|
|||
|
||||
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
|
||||
let builder = run.builder;
|
||||
run.path($path).default_condition(builder.config.extended)
|
||||
run.path($path).default_condition(
|
||||
builder.config.extended
|
||||
&& builder.config.tools.as_ref().map_or(true, |tools| {
|
||||
tools.iter().any(|tool| match tool.as_ref() {
|
||||
"clippy" => $tool_name == "clippy-driver",
|
||||
x => $tool_name == x,
|
||||
})
|
||||
}),
|
||||
)
|
||||
}
|
||||
|
||||
fn make_run(run: RunConfig<'_>) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue