Skip to content

Commit fcefe36

Browse files
committed
bootstrap: only include docs in extended distribution if enabled
Issue #44163
1 parent 088216f commit fcefe36

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/bootstrap/dist.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,10 @@ impl Step for Extended {
11641164
// the std files during uninstall. To do this ensure that rustc comes
11651165
// before rust-std in the list below.
11661166
let mut tarballs = vec![rustc_installer, cargo_installer, rls_installer,
1167-
analysis_installer, docs_installer, std_installer];
1167+
analysis_installer, std_installer];
1168+
if build.config.docs {
1169+
tarballs.push(docs_installer);
1170+
}
11681171
if target.contains("pc-windows-gnu") {
11691172
tarballs.push(mingw_installer.unwrap());
11701173
}

0 commit comments

Comments
 (0)