We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6f5186 commit 328adc4Copy full SHA for 328adc4
1 file changed
src/bootstrap/src/bin/rustdoc.rs
@@ -40,6 +40,12 @@ fn main() {
40
if !args.iter().any(|arg| arg == "--sysroot") {
41
cmd.arg("--sysroot").arg(&sysroot);
42
}
43
+ } else {
44
+ // Find any host flags that were passed by bootstrap.
45
+ // The flags are stored in a RUSTC_HOST_FLAGS variable, separated by spaces.
46
+ if let Ok(flags) = std::env::var("RUSTC_HOST_FLAGS") {
47
+ cmd.args(flags.split(' '));
48
+ }
49
50
51
cmd.args(&args);
0 commit comments