We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7d9f15 commit 7ba6cc6Copy full SHA for 7ba6cc6
src/bootstrap/src/core/builder.rs
@@ -28,6 +28,7 @@ pub use crate::Compiler;
28
// - use std::lazy for `Lazy`
29
// - use std::cell for `OnceCell`
30
// Once they get stabilized and reach beta.
31
+use build_helper::ci::CiEnv;
32
use clap::ValueEnum;
33
use once_cell::sync::{Lazy, OnceCell};
34
@@ -1273,7 +1274,7 @@ impl<'a> Builder<'a> {
1273
1274
self.clear_if_dirty(&out_dir, &backend);
1275
}
1276
- if cmd == "doc" || cmd == "rustdoc" {
1277
+ if cmd == "doc" || cmd == "rustdoc" && !CiEnv::is_ci() {
1278
let my_out = match mode {
1279
// This is the intended out directory for compiler documentation.
1280
Mode::Rustc | Mode::ToolRustc => self.compiler_doc_out(target),
0 commit comments