Skip to content

Commit 3efce36

Browse files
committed
Add env var to override clippy-driver location
1 parent 1b21661 commit 3efce36

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ impl ClippyCmd {
9595
}
9696

9797
fn path() -> PathBuf {
98+
if let Ok(driver) = env::var("CLIPPY_DRIVER") {
99+
return PathBuf::from(driver);
100+
}
101+
98102
let mut path = env::current_exe()
99103
.expect("current executable path invalid")
100104
.with_file_name("clippy-driver");

0 commit comments

Comments
 (0)