Skip to content

Commit

Permalink
rustbuild: Stop building docs for std dependancies
Browse files Browse the repository at this point in the history
  • Loading branch information
ollie27 committed Jan 5, 2017
1 parent ac5cd3b commit 6b96ece
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/bootstrap/doc.rs
Expand Up @@ -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)
}
Expand Down

0 comments on commit 6b96ece

Please sign in to comment.