File tree Expand file tree Collapse file tree 3 files changed +16
-10
lines changed Expand file tree Collapse file tree 3 files changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,12 @@ environment:
2
2
global :
3
3
PROJECT_NAME : rust-clippy
4
4
matrix :
5
- - TARGET : i686-pc-windows-gnu
6
- MSYS2_BITS : 32
7
- - TARGET : i686-pc-windows-msvc
8
- MSYS2_BITS : 32
9
- - TARGET : x86_64-pc-windows-gnu
10
- MSYS2_BITS : 64
5
+ # - TARGET: i686-pc-windows-gnu
6
+ # MSYS2_BITS: 32
7
+ # - TARGET: i686-pc-windows-msvc
8
+ # MSYS2_BITS: 32
9
+ # - TARGET: x86_64-pc-windows-gnu
10
+ # MSYS2_BITS: 64
11
11
- TARGET : x86_64-pc-windows-msvc
12
12
MSYS2_BITS : 64
13
13
@@ -26,9 +26,9 @@ test_script:
26
26
- set RUST_BACKTRACE=1
27
27
- cargo build --features debugging
28
28
- cargo test --features debugging
29
- - copy target\debug\cargo-clippy.exe C:\Users\appveyor\.cargo\bin\
30
- - cargo clippy -- -D clippy
31
- - cd clippy_lints && cargo clippy -- -D clippy && cd ..
29
+ # - copy target\debug\cargo-clippy.exe C:\Users\appveyor\.cargo\bin\
30
+ # - cargo clippy -- -D clippy
31
+ # - cd clippy_lints && cargo clippy -- -D clippy && cd ..
32
32
33
33
notifications :
34
34
- provider : Email
Original file line number Diff line number Diff line change @@ -180,9 +180,12 @@ where
180
180
args. push ( "--cfg" . to_owned ( ) ) ;
181
181
args. push ( r#"feature="cargo-clippy""# . to_owned ( ) ) ;
182
182
183
- let path = std:: env:: current_exe ( )
183
+ let mut path = std:: env:: current_exe ( )
184
184
. expect ( "current executable path invalid" )
185
185
. with_file_name ( "clippy-driver" ) ;
186
+ if cfg ! ( windows) {
187
+ path. set_extension ( "exe" ) ;
188
+ }
186
189
let exit_status = std:: process:: Command :: new ( "cargo" )
187
190
. args ( & args)
188
191
. env ( "RUSTC_WRAPPER" , path)
Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ fn dogfood() {
3
3
if option_env ! ( "RUSTC_TEST_SUITE" ) . is_some ( ) {
4
4
return ;
5
5
}
6
+ if cfg ! ( windows) {
7
+ return ;
8
+ }
6
9
let root_dir = std:: env:: current_dir ( ) . unwrap ( ) ;
7
10
for d in & [ "." , "clippy_lints" ] {
8
11
std:: env:: set_current_dir ( root_dir. join ( d) ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments