fix x doc --stage 0 compiler if the compiler hasn't yet been built
This commit is contained in:
parent
3f05b1fb2c
commit
d613134623
1 changed files with 1 additions and 0 deletions
|
|
@ -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).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue