From fcefe36ce70d87cfb26cc1b10c8668aaf9eca1f6 Mon Sep 17 00:00:00 2001 From: "Jonathan A. Kollasch" Date: Mon, 4 Sep 2017 15:41:55 -0500 Subject: [PATCH] bootstrap: only include docs in extended distribution if enabled Issue #44163 --- src/bootstrap/dist.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs index 05d59e7d59565..2f3a8d1763edb 100644 --- a/src/bootstrap/dist.rs +++ b/src/bootstrap/dist.rs @@ -1164,7 +1164,10 @@ impl Step for Extended { // the std files during uninstall. To do this ensure that rustc comes // before rust-std in the list below. let mut tarballs = vec![rustc_installer, cargo_installer, rls_installer, - analysis_installer, docs_installer, std_installer]; + analysis_installer, std_installer]; + if build.config.docs { + tarballs.push(docs_installer); + } if target.contains("pc-windows-gnu") { tarballs.push(mingw_installer.unwrap()); }