about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-09-19 18:31:44 +0200
committerGitHub <noreply@github.com>2019-09-19 18:31:44 +0200
commit99cbffb15fd0e17ee27c1e161a6b1e37215c514b (patch)
treed80f5e453cbd58d0a450a6acea1f9555cd643ecb
parentff7a9cf27686476faf8f94bf3269186fafc2d9f0 (diff)
parentd7f64749c0d32f3d63c0ee5d0999fce99f222553 (diff)
downloadrust-99cbffb15fd0e17ee27c1e161a6b1e37215c514b.tar.gz
rust-99cbffb15fd0e17ee27c1e161a6b1e37215c514b.zip
Rollup merge of #64613 - alexcrichton:less-doc-copies, r=Mark-Simulacrum
rustbuild: Copy crate doc files fewer times

Previously when building documentation for the standard library we'd
copy all the files 5 times, and these files include libcore/libstd docs
which are huge! This commit instead only copies the files after rustdoc
has been run for each crate, reducing the number of redundant copies
we're making.
-rw-r--r--src/bootstrap/doc.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/doc.rs b/src/bootstrap/doc.rs
index 6faedc80ad3..873a3c31d15 100644
--- a/src/bootstrap/doc.rs
+++ b/src/bootstrap/doc.rs
@@ -476,11 +476,11 @@ impl Step for Std {
                  .arg("--index-page").arg(&builder.src.join("src/doc/index.md"));
 
             builder.run(&mut cargo);
-            builder.cp_r(&my_out, &out);
         };
         for krate in &["alloc", "core", "std", "proc_macro", "test"] {
             run_cargo_rustdoc_for(krate);
         }
+        builder.cp_r(&my_out, &out);
     }
 }