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 1b11393 commit 3c15a55Copy full SHA for 3c15a55
build.rs
@@ -114,10 +114,10 @@ fn main() {
114
/// Run `rustc --version` and capture the output, adjusting arguments as needed if `clippy-driver`
115
/// is used instead.
116
fn rustc_version_cmd(is_clippy_driver: bool) -> Output {
117
- let rustc_wrapper = env::var_os("RUSTC_WRAPPER").filter(|w| !w.is_empty());
118
let rustc = env::var_os("RUSTC").expect("Failed to get rustc version: missing RUSTC env");
119
120
- let mut cmd = match rustc_wrapper {
+ let mut cmd = match env::var_os("RUSTC_WRAPPER") {
+ Some(wrapper) if wrapper.is_empty() => Command::new(rustc),
121
Some(wrapper) => {
122
let mut cmd = Command::new(wrapper);
123
cmd.arg(rustc);
0 commit comments