about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorJonathan A. Kollasch <jakllsch@kollasch.net>2017-09-04 15:41:55 -0500
committerJonathan A. Kollasch <jakllsch@kollasch.net>2017-09-04 15:42:11 -0500
commitfcefe36ce70d87cfb26cc1b10c8668aaf9eca1f6 (patch)
tree1217dd549ff2b8b00e3084388047b301ca4184f6 /src/bootstrap
parent088216fb997c9cb12ce049bbe7975d1f657551ca (diff)
downloadrust-fcefe36ce70d87cfb26cc1b10c8668aaf9eca1f6.tar.gz
rust-fcefe36ce70d87cfb26cc1b10c8668aaf9eca1f6.zip
bootstrap: only include docs in extended distribution if enabled
Issue #44163
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/dist.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs
index 05d59e7d595..2f3a8d1763e 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());
         }