From 6c423757dd677c88c38ae32e4ee528a064fd3057 Mon Sep 17 00:00:00 2001 From: Jason Newcomb Date: Thu, 22 Apr 2021 13:12:10 -0400 Subject: [PATCH] Fix lintcheck on windows --- lintcheck/src/main.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lintcheck/src/main.rs b/lintcheck/src/main.rs index bfb0c3b3f74..f6a75595c98 100644 --- a/lintcheck/src/main.rs +++ b/lintcheck/src/main.rs @@ -22,9 +22,16 @@ use rayon::prelude::*; use serde::{Deserialize, Serialize}; use serde_json::Value; +#[cfg(not(windows))] const CLIPPY_DRIVER_PATH: &str = "target/debug/clippy-driver"; +#[cfg(not(windows))] const CARGO_CLIPPY_PATH: &str = "target/debug/cargo-clippy"; +#[cfg(windows)] +const CLIPPY_DRIVER_PATH: &str = "target/debug/clippy-driver.exe"; +#[cfg(windows)] +const CARGO_CLIPPY_PATH: &str = "target/debug/cargo-clippy.exe"; + const LINTCHECK_DOWNLOADS: &str = "target/lintcheck/downloads"; const LINTCHECK_SOURCES: &str = "target/lintcheck/sources";