diff options
| author | Oliver Middleton <olliemail27@gmail.com> | 2017-06-21 17:59:10 +0100 |
|---|---|---|
| committer | Oliver Middleton <olliemail27@gmail.com> | 2017-06-21 17:59:10 +0100 |
| commit | ae1dc2a6f902cea5b6e833497b11d8860acabfd9 (patch) | |
| tree | 87b79028ce9f054fd88c77fa073e171b1c206ea0 /src/bootstrap/bin | |
| parent | 445077963c55297ef1e196a3525723090fe80b22 (diff) | |
| download | rust-ae1dc2a6f902cea5b6e833497b11d8860acabfd9.tar.gz rust-ae1dc2a6f902cea5b6e833497b11d8860acabfd9.zip | |
rustbuild: Fix compiler docs yet again
Add support for `-Z force-unstable-if-unmarked` to rustdoc.
Diffstat (limited to 'src/bootstrap/bin')
| -rw-r--r-- | src/bootstrap/bin/rustdoc.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bootstrap/bin/rustdoc.rs b/src/bootstrap/bin/rustdoc.rs index 3a1a9c3e40d..d7d72d5dd56 100644 --- a/src/bootstrap/bin/rustdoc.rs +++ b/src/bootstrap/bin/rustdoc.rs @@ -41,11 +41,11 @@ fn main() { .env(bootstrap::util::dylib_path_var(), env::join_paths(&dylib_path).unwrap()); - // Pass the `rustbuild` feature flag to crates which rustbuild is - // building. See the comment in bootstrap/lib.rs where this env var is - // set for more details. - if env::var_os("RUSTBUILD_UNSTABLE").is_some() { - cmd.arg("--cfg").arg("rustbuild"); + // Force all crates compiled by this compiler to (a) be unstable and (b) + // allow the `rustc_private` feature to link to other unstable crates + // also in the sysroot. + if env::var_os("RUSTC_FORCE_UNSTABLE").is_some() { + cmd.arg("-Z").arg("force-unstable-if-unmarked"); } std::process::exit(match cmd.status() { |
