diff options
| author | bors <bors@rust-lang.org> | 2017-07-27 17:07:58 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-07-27 17:07:58 +0000 |
| commit | 5cc1baa2900ab344e8e8386aa8314b59051868ca (patch) | |
| tree | 84f87eb9376358b870ca40dbb1962b85341dbad4 /src/rustllvm/RustWrapper.cpp | |
| parent | 0565653eecd7d667dbb28bb5d3008e783950892a (diff) | |
| parent | 9ee877bbe6300b987dc29f90b192de7a6e258bcf (diff) | |
| download | rust-5cc1baa2900ab344e8e8386aa8314b59051868ca.tar.gz rust-5cc1baa2900ab344e8e8386aa8314b59051868ca.zip | |
Auto merge of #43482 - Mark-Simulacrum:single-rustdoc, r=alexcrichton
Compile rustdoc on-demand Fixes #43284, fixes #38318, and fixes #39505. Doesn't directly help with https://github.com/rust-lang/rust/issues/42686, since we need to rebuild just as much. In fact, this hurts it, since `./x.py doc --stage 0` will now fail. I'm not sure if it did before, but with these changes it runs into the problem where we attempt to use artifacts from bootstrap rustc with a non-bootstrap rustdoc, running into version conflicts. I believe this is solvable, but leaving for a future PR. This means that rustdoc will no longer be compiled when compiling rustc, by default. However, it is still built from `./x.py build` (for hosts, but not targets, since we don't produce compiler toolchains for them) and will be built for doc tests and crate tests. After this, the recommended workflow if you want a rustdoc is: `./x.py build --stage 1 src/tools/rustdoc` which will give you a working rustdoc in `build/triple/stage1/bin/rustdoc`. Note that you can add `src/libstd` onto the command to compile libstd as well so that the rustdoc can easily compile crates in the wild. `./x.py doc --stage 1 src/libstd` will document `libstd` with a freshly built rustdoc (if necessary), and will not rebuild rustc on modifications to rustdoc. r? @alexcrichton
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
