diff options
| author | jyn <github@jyn.dev> | 2023-06-03 14:46:22 -0500 |
|---|---|---|
| committer | jyn <github@jyn.dev> | 2023-06-03 14:47:45 -0500 |
| commit | d613134623d1659ece542a02b585b70cbf36c2b5 (patch) | |
| tree | f31ab8484684d3068c1a01a1cacb988306039235 | |
| parent | 3f05b1fb2c90c88bbd5853928653247ad79b7047 (diff) | |
| download | rust-d613134623d1659ece542a02b585b70cbf36c2b5.tar.gz rust-d613134623d1659ece542a02b585b70cbf36c2b5.zip | |
fix `x doc --stage 0 compiler` if the compiler hasn't yet been built
| -rw-r--r-- | src/bootstrap/doc.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bootstrap/doc.rs b/src/bootstrap/doc.rs index be3d7aacafd..f3716c81e11 100644 --- a/src/bootstrap/doc.rs +++ b/src/bootstrap/doc.rs @@ -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). |
