Skip to content

Commit 37b0a10

Browse files
committed
rustbuild: Don't build doc::SharedAssets when building JSON docs.
1 parent 41e0363 commit 37b0a10

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/bootstrap/doc.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,9 @@ impl Step for Std {
458458

459459
t!(fs::create_dir_all(&out));
460460

461-
builder.ensure(SharedAssets { target: self.target });
461+
if self.format == DocumentationFormat::HTML {
462+
builder.ensure(SharedAssets { target: self.target });
463+
}
462464

463465
let index_page = builder.src.join("src/doc/index.md").into_os_string();
464466
let mut extra_args = match self.format {

0 commit comments

Comments
 (0)