diff options
| author | ozkanonur <work@onurozkan.dev> | 2022-11-20 15:51:50 +0300 |
|---|---|---|
| committer | ozkanonur <work@onurozkan.dev> | 2022-11-20 15:51:50 +0300 |
| commit | 7e28df9561cbfb98c0b5a7f4868823709c1914c1 (patch) | |
| tree | 996b45b040df0157fd18d08947b43d901a79bd44 /src/bootstrap/builder.rs | |
| parent | 0a275abec64398ece3ebba1a5db3efa24f49728b (diff) | |
| download | rust-7e28df9561cbfb98c0b5a7f4868823709c1914c1.tar.gz rust-7e28df9561cbfb98c0b5a7f4868823709c1914c1.zip | |
refactor doc copying process
Signed-off-by: ozkanonur <work@onurozkan.dev>
Diffstat (limited to 'src/bootstrap/builder.rs')
| -rw-r--r-- | src/bootstrap/builder.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs index 31158870f39..7ee80eceb95 100644 --- a/src/bootstrap/builder.rs +++ b/src/bootstrap/builder.rs @@ -1345,7 +1345,13 @@ impl<'a> Builder<'a> { let my_out = match mode { // This is the intended out directory for compiler documentation. Mode::Rustc | Mode::ToolRustc => self.compiler_doc_out(target), - Mode::Std => out_dir.join(target.triple).join("doc"), + Mode::Std => { + if self.config.cmd.json() { + out_dir.join(target.triple).join("json-doc") + } else { + out_dir.join(target.triple).join("doc") + } + } _ => panic!("doc mode {:?} not expected", mode), }; let rustdoc = self.rustdoc(compiler); |
