diff options
| author | Oliver Middleton <olliemail27@gmail.com> | 2017-01-05 22:26:04 +0000 |
|---|---|---|
| committer | Oliver Middleton <olliemail27@gmail.com> | 2017-01-05 22:26:04 +0000 |
| commit | 6b96ece247d4858b0d80058118d5090ad0a1fd91 (patch) | |
| tree | bf204ee70709bfb759bcc1ac370cf9f5b377faa9 | |
| parent | ac5cd3bd43b9dbe681417e482065b24c08c544e8 (diff) | |
| download | rust-6b96ece247d4858b0d80058118d5090ad0a1fd91.tar.gz rust-6b96ece247d4858b0d80058118d5090ad0a1fd91.zip | |
rustbuild: Stop building docs for std dependancies
| -rw-r--r-- | src/bootstrap/doc.rs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/bootstrap/doc.rs b/src/bootstrap/doc.rs index bbbf5cba8a1..5213b695216 100644 --- a/src/bootstrap/doc.rs +++ b/src/bootstrap/doc.rs @@ -152,7 +152,16 @@ pub fn std(build: &Build, stage: u32, target: &str) { cargo.arg("--manifest-path") .arg(build.src.join("src/rustc/std_shim/Cargo.toml")) .arg("--features").arg(build.std_features()) - .arg("-p").arg("std"); + .arg("--no-deps"); + + for krate in &["alloc", "collections", "core", "std", "std_unicode"] { + cargo.arg("-p").arg(krate); + // Create all crate output directories first to make sure rustdoc uses + // relative links. + // FIXME: Cargo should probably do this itself. + t!(fs::create_dir_all(out_dir.join(krate))); + } + build.run(&mut cargo); cp_r(&out_dir, &out) } |
