We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ccce2c6 commit 3545fb5Copy full SHA for 3545fb5
src/bootstrap/bin/rustdoc.rs
@@ -40,6 +40,14 @@ fn main() {
40
.arg(sysroot)
41
.env(bootstrap::util::dylib_path_var(),
42
env::join_paths(&dylib_path).unwrap());
43
+
44
+ // Pass the `rustbuild` feature flag to crates which rustbuild is
45
+ // building. See the comment in bootstrap/lib.rs where this env var is
46
+ // set for more details.
47
+ if env::var_os("RUSTBUILD_UNSTABLE").is_some() {
48
+ cmd.arg("--cfg").arg("rustbuild");
49
+ }
50
51
std::process::exit(match cmd.status() {
52
Ok(s) => s.code().unwrap_or(1),
53
Err(e) => panic!("\n\nfailed to run {:?}: {}\n\n", cmd, e),
0 commit comments