diff --git a/config/makefiles/rust.mk b/config/makefiles/rust.mk index 56871751835c..2287a475eb94 100644 --- a/config/makefiles/rust.mk +++ b/config/makefiles/rust.mk @@ -254,7 +254,7 @@ endif export RUSTC_BOOTSTRAP endif -target_rust_ltoable := force-cargo-library-build force-cargo-library-udeps +target_rust_ltoable := force-cargo-library-build force-cargo-library-udeps force-cargo-library-clippy target_rust_nonltoable := force-cargo-test-run force-cargo-library-check $(foreach b,build check,force-cargo-program-$(b)) ifdef MOZ_PGO_RUST @@ -286,7 +286,7 @@ $(target_rust_nonltoable): RUSTFLAGS:=$(rustflags_override) $(rustflags_sancov) TARGET_RECIPES := $(target_rust_ltoable) $(target_rust_nonltoable) HOST_RECIPES := \ - $(foreach a,library program,$(foreach b,build check udeps,force-cargo-host-$(a)-$(b))) + $(foreach a,library program,$(foreach b,build check udeps clippy,force-cargo-host-$(a)-$(b))) $(HOST_RECIPES): RUSTFLAGS:=$(rustflags_override)