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.
run_cargo_command_with_callback
1 parent 7013ecc commit ad1d541Copy full SHA for ad1d541
build_system/src/test.rs
@@ -694,9 +694,12 @@ where
694
);
695
eprintln!("Using `{}`.", rustc_toolchain_version);
696
}
697
+ let mut env = env.clone();
698
+ let rustflags = env.get("RUSTFLAGS").cloned().unwrap_or_default();
699
+ env.insert("RUSTDOCFLAGS".to_string(), rustflags);
700
let mut cargo_command: Vec<&dyn AsRef<OsStr>> = vec![&"cargo", &toolchain_arg];
701
cargo_command.extend_from_slice(&command);
- callback(&cargo_command, cwd, env)
702
+ callback(&cargo_command, cwd, &env)
703
704
705
// FIXME(antoyo): linker gives multiple definitions error on Linux
0 commit comments