Skip to content

Commit

Permalink
fix x doc --stage 0 compiler if the compiler hasn't yet been built
Browse files Browse the repository at this point in the history
  • Loading branch information
jyn514 committed Jun 3, 2023
1 parent 3f05b1f commit d613134
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bootstrap/doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -693,6 +693,7 @@ impl Step for Rustc {
// rustc. rustdoc needs to be able to see everything, for example when
// merging the search index, or generating local (relative) links.
let out_dir = builder.stage_out(compiler, Mode::Rustc).join(target.triple).join("doc");
t!(fs::create_dir_all(out_dir.parent().unwrap()));
symlink_dir_force(&builder.config, &out, &out_dir);
// Cargo puts proc macros in `target/doc` even if you pass `--target`
// explicitly (https://github.com/rust-lang/cargo/issues/7677).
Expand Down

0 comments on commit d613134

Please sign in to comment.