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 5078335 commit 4168789Copy full SHA for 4168789
build.rs
@@ -197,10 +197,10 @@ fn main() {
197
/// Run `rustc --version` and capture the output, adjusting arguments as needed if `clippy-driver`
198
/// is used instead.
199
fn rustc_version_cmd(is_clippy_driver: bool) -> Output {
200
- let rustc_wrapper = env::var_os("RUSTC_WRAPPER").filter(|w| !w.is_empty());
201
let rustc = env::var_os("RUSTC").expect("Failed to get rustc version: missing RUSTC env");
202
203
- let mut cmd = match rustc_wrapper {
+ let mut cmd = match env::var_os("RUSTC_WRAPPER") {
+ Some(wrapper) if wrapper.is_empty() => Command::new(rustc),
204
Some(wrapper) => {
205
let mut cmd = Command::new(wrapper);
206
cmd.arg(rustc);
0 commit comments