Readd the .exe extension on windows
This commit is contained in:
parent
b1001e47d6
commit
26f83d6218
1 changed files with 4 additions and 1 deletions
|
@ -180,9 +180,12 @@ where
|
||||||
args.push("--cfg".to_owned());
|
args.push("--cfg".to_owned());
|
||||||
args.push(r#"feature="cargo-clippy""#.to_owned());
|
args.push(r#"feature="cargo-clippy""#.to_owned());
|
||||||
|
|
||||||
let path = std::env::current_exe()
|
let mut path = std::env::current_exe()
|
||||||
.expect("current executable path invalid")
|
.expect("current executable path invalid")
|
||||||
.with_file_name("clippy-driver");
|
.with_file_name("clippy-driver");
|
||||||
|
if cfg!(windows) {
|
||||||
|
path.set_extension("exe");
|
||||||
|
}
|
||||||
let exit_status = std::process::Command::new("cargo")
|
let exit_status = std::process::Command::new("cargo")
|
||||||
.args(&args)
|
.args(&args)
|
||||||
.env("RUSTC_WRAPPER", path)
|
.env("RUSTC_WRAPPER", path)
|
||||||
|
|
Loading…
Reference in a new issue