Skip to content

Commit

Permalink
explicitly link to external ena docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lcnr committed Sep 11, 2021
1 parent 497ee32 commit 03f9fe2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/bootstrap/doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -590,10 +590,18 @@ impl Step for Rustc {
cargo.rustdocflag("-Znormalize-docs");
cargo.rustdocflag("--show-type-layout");
compile::rustc_cargo(builder, &mut cargo, target);
cargo.arg("-Zunstable-options");
cargo.arg("-Zskip-rustdoc-fingerprint");

// Only include compiler crates, no dependencies of those, such as `libc`.
// Do link to dependencies on `docs.rs` however using `rustdoc-map`.
cargo.arg("--no-deps");
cargo.arg("-Zrustdoc-map");

// FIXME: `-Zrustdoc-map` does not yet correctly work for transitive dependencies,
// once this is no longer an issue the special case for `ena` can be removed.
cargo.rustdocflag("--extern-html-root-url");
cargo.rustdocflag("ena=https://docs.rs/ena/latest/");

// Find dependencies for top level crates.
let mut compiler_crates = HashSet::new();
Expand Down

0 comments on commit 03f9fe2

Please sign in to comment.