mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
We should not call clippy on Mac OS when running make check
This commit is contained in:
parent
2008f2b7bc
commit
e4698b9997
1 changed files with 8 additions and 3 deletions
|
@ -74,6 +74,8 @@ build: .build/build
|
||||||
|
|
||||||
check: .build/check
|
check: .build/check
|
||||||
|
|
||||||
|
clippy: .build/clippy
|
||||||
|
|
||||||
fix:
|
fix:
|
||||||
cargo fmt
|
cargo fmt
|
||||||
|
|
||||||
|
@ -90,13 +92,16 @@ RUST_TOOLCHAIN := $(shell cat rust-toolchain)
|
||||||
rustup component add clippy-preview --toolchain $(RUST_TOOLCHAIN)
|
rustup component add clippy-preview --toolchain $(RUST_TOOLCHAIN)
|
||||||
@touch $@
|
@touch $@
|
||||||
|
|
||||||
# cargo clippy also run build.rs, thus it must be called before calling .build/develop
|
# we should not call clippy because it break things when running make check Mac OS
|
||||||
.build/check: .build/clippy .build/develop
|
# https://github.com/ankitects/anki/pull/597
|
||||||
|
.build/check: .build/develop
|
||||||
cargo fmt -- --check
|
cargo fmt -- --check
|
||||||
@touch $@
|
@touch $@
|
||||||
|
|
||||||
|
# cargo clippy also run build.rs, thus it must be called using the BUILD_VARIABLES
|
||||||
.build/clippy: $(DEPS)
|
.build/clippy: $(DEPS)
|
||||||
cargo clippy -- -D warnings
|
${BUILD_VARIABLES} \
|
||||||
|
cargo clippy -- -D warnings
|
||||||
@touch $@
|
@touch $@
|
||||||
|
|
||||||
VER := $(shell cat ../meta/version)
|
VER := $(shell cat ../meta/version)
|
||||||
|
|
Loading…
Reference in a new issue