]> git.lizzy.rs Git - rust.git/commitdiff
Fix lintcheck on windows
authorJason Newcomb <jsnewcomb@pm.me>
Thu, 22 Apr 2021 17:12:10 +0000 (13:12 -0400)
committerJason Newcomb <jsnewcomb@pm.me>
Thu, 22 Apr 2021 17:16:54 +0000 (13:16 -0400)
lintcheck/src/main.rs

index bfb0c3b3f74ec9b4baef4c517018f77b4d277ecf..f6a75595c986b1294e21bf8236eafd90cd97237e 100644 (file)
 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";