Do not build tools if user do not want them
This commit is contained in:
parent
8d67f576b5
commit
9296d3ba82
@ -607,7 +607,15 @@ impl Step for $name {
|
|||||||
|
|
||||||
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
|
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
|
||||||
let builder = run.builder;
|
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<'_>) {
|
fn make_run(run: RunConfig<'_>) {
|
||||||
|
Loading…
Reference in New Issue
Block a user