Skip to content
Permalink
Browse files

Handle RUSTDOC_RESOURCE_SUFFIX env variable for rustdoc build

  • Loading branch information...
GuillaumeGomez committed Mar 25, 2019
1 parent 2d6745d commit 50c50e3a82e80dcc31f366b81c491fd0bf8ed5ac
Showing with 11 additions and 0 deletions.
  1. +11 −0 src/bootstrap/bin/rustdoc.rs
@@ -69,6 +69,17 @@ fn main() {
.arg("unstable-options");
}
cmd.arg("--generate-redirect-pages");
has_unstable = true;
}

// Needed to be able to run all rustdoc tests.
if let Some(ref x) = env::var_os("RUSTDOC_RESOURCE_SUFFIX") {
// This "unstable-options" can be removed when `--resource-suffix` is stabilized
if !has_unstable {
cmd.arg("-Z")
.arg("unstable-options");
}
cmd.arg("--resource-suffix").arg(x);
}

if verbose > 1 {

0 comments on commit 50c50e3

Please sign in to comment.
You can’t perform that action at this time.