Skip to content

Commit c346482

Browse files
committed
create global doc dir for all doc targets
1 parent 2ab18ce commit c346482

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/bootstrap/doc.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ pub fn std(build: &Build, stage: u32, target: &str, out: &Path) {
155155
/// is largely just a wrapper around `cargo doc`.
156156
pub fn test(build: &Build, stage: u32, target: &str, out: &Path) {
157157
println!("Documenting stage{} test ({})", stage, target);
158+
t!(fs::create_dir_all(out));
158159
let compiler = Compiler::new(stage, &build.config.build);
159160
let out_dir = build.stage_out(&compiler, Mode::Libtest)
160161
.join(target).join("doc");
@@ -175,6 +176,7 @@ pub fn test(build: &Build, stage: u32, target: &str, out: &Path) {
175176
/// dependencies. This is largely just a wrapper around `cargo doc`.
176177
pub fn rustc(build: &Build, stage: u32, target: &str, out: &Path) {
177178
println!("Documenting stage{} compiler ({})", stage, target);
179+
t!(fs::create_dir_all(out));
178180
let compiler = Compiler::new(stage, &build.config.build);
179181
let out_dir = build.stage_out(&compiler, Mode::Librustc)
180182
.join(target).join("doc");

0 commit comments

Comments
 (0)