diff options
| author | Matthew Esposito <matt@matthew.science> | 2023-06-09 10:47:41 -0400 |
|---|---|---|
| committer | Matthew Esposito <matt@matthew.science> | 2023-06-09 10:47:41 -0400 |
| commit | 7f79ceb438321810a8199fb099067cd648c638da (patch) | |
| tree | f8b2bae4029f3805d0768ada08b944e9d148fd50 | |
| parent | 343ad6f0596fa3222f3168b74b3e8571066e77bb (diff) | |
| download | rust-7f79ceb438321810a8199fb099067cd648c638da.tar.gz rust-7f79ceb438321810a8199fb099067cd648c638da.zip | |
Compile rustc_driver by default
| -rw-r--r-- | src/bootstrap/doc.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/bootstrap/doc.rs b/src/bootstrap/doc.rs index d6210ed59c4..fef7e4db9ab 100644 --- a/src/bootstrap/doc.rs +++ b/src/bootstrap/doc.rs @@ -667,7 +667,7 @@ impl Step for Rustc { /// Compiler documentation is distributed separately, so we make sure /// we do not merge it with the other documentation from std, test and /// proc_macros. This is largely just a wrapper around `cargo doc`. - fn run(self, builder: &Builder<'_>) { + fn run(mut self, builder: &Builder<'_>) { let stage = self.stage; let target = self.target; @@ -725,6 +725,11 @@ impl Step for Rustc { cargo.rustdocflag("ena=https://docs.rs/ena/latest/"); let mut to_open = None; + + if self.crates.is_empty() { + self.crates = INTERNER.intern_list(vec!["rustc_driver".to_owned()]); + }; + for krate in &*self.crates { // Create all crate output directories first to make sure rustdoc uses // relative links. |
