We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbf2b70 commit 194c3fbCopy full SHA for 194c3fb
src/bootstrap/dist.rs
@@ -48,6 +48,11 @@ pub fn tmpdir(build: &Build) -> PathBuf {
48
/// Slurps up documentation from the `stage`'s `host`.
49
pub fn docs(build: &Build, stage: u32, host: &str) {
50
println!("Dist docs stage{} ({})", stage, host);
51
+ if !build.config.docs {
52
+ println!("\tskipping - docs disabled");
53
+ return
54
+ }
55
+
56
let name = format!("rust-docs-{}", package_vers(build));
57
let image = tmpdir(build).join(format!("{}-{}-image", name, name));
58
let _ = fs::remove_dir_all(&image);
0 commit comments