Skip to content

Commit 2cfac3f

Browse files
committed
don't build extra tools if build.tools is explicitly an empty list
1 parent f4c6d8f commit 2cfac3f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/bootstrap/dist.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,7 @@ fn should_build_extended_tool(builder: &Builder<'_>, tool: &str) -> bool {
5050
if !builder.config.extended {
5151
return false;
5252
}
53-
54-
if let Some(tools) = &builder.config.tools {
55-
tools.is_empty() || tools.contains(tool)
56-
} else {
57-
true
58-
}
53+
builder.config.tools.as_ref().map_or(true, |tools| tools.contains(tool))
5954
}
6055

6156
#[derive(Debug, PartialOrd, Ord, Copy, Clone, Hash, PartialEq, Eq)]

0 commit comments

Comments
 (0)