Skip to content

Commit 2a33287

Browse files
committed
ensure existence of the tool crate dir before linking
Signed-off-by: onur-ozkan <[email protected]>
1 parent a348b00 commit 2a33287

File tree

1 file changed

+6
-5
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+6
-5
lines changed

src/bootstrap/src/core/build_steps/doc.rs

+6-5
Original file line numberDiff line numberDiff line change
@@ -829,13 +829,14 @@ macro_rules! tool_doc {
829829
builder.stage_out(compiler, Mode::ToolRustc).join("doc"),
830830
];
831831

832-
$(for krate in $crates {
833-
let dir_name = krate.replace("-", "_");
834-
t!(fs::create_dir_all(&out.join(dir_name)));
835-
})?
836-
837832
for out_dir in out_dirs {
833+
t!(fs::create_dir_all(&out_dir));
838834
symlink_dir_force(&builder.config, &out, &out_dir);
835+
836+
$(for krate in $crates {
837+
let dir_name = krate.replace("-", "_");
838+
t!(fs::create_dir_all(&out_dir.join(&*dir_name)));
839+
})?
839840
}
840841

841842
// Build cargo command.

0 commit comments

Comments
 (0)