@@ -90,9 +90,10 @@ $(objtree)/rust/exports_kernel_generated.h: $(objtree)/rust/kernel.o FORCE
9090
9191# `-Cpanic=unwind -Cforce-unwind-tables=y` overrides `rustc_flags` in order to
9292# avoid the https://github.com/rust-lang/rust/issues/82320 rustc crash.
93- quiet_cmd_rustc_procmacro = RUSTC P $( CLIPPY_QUIET_TAG ) $@
93+ quiet_cmd_rustc_procmacro = $( RUSTC_OR_CLIPPY_QUIET ) P $@
9494 cmd_rustc_procmacro = \
95- $(CLIPPY_DRIVER ) $(RUSTC ) $(rustc_flags ) --emit=dep-info,link --extern proc_macro \
95+ $(RUSTC_OR_CLIPPY ) $(rustc_flags ) \
96+ --emit=dep-info,link --extern proc_macro \
9697 -Cpanic=unwind -Cforce-unwind-tables=y \
9798 --crate-type proc-macro --out-dir $(objtree ) /rust/ \
9899 --crate-name $(patsubst lib% .so,% ,$(notdir $@ ) ) $< ; \
@@ -102,11 +103,11 @@ quiet_cmd_rustc_procmacro = RUSTC P $(CLIPPY_QUIET_TAG)$@
102103$(objtree ) /rust/libmodule.so : $(srctree ) /rust/module.rs FORCE
103104 $(call if_changed_dep,rustc_procmacro)
104105
105- quiet_cmd_rustc_library = RUSTC L $(if $(skip_clippy ) ,,$(CLIPPY_QUIET_TAG ) ) $@
106+ quiet_cmd_rustc_library = $(if $(skip_clippy ) ,RUSTC ,$(RUSTC_OR_CLIPPY_QUIET ) ) L $@
106107 cmd_rustc_library = \
107108 RUST_BINDINGS_FILE=$(abspath $(objtree ) /rust/bindings_generated.rs) \
108- $(if $(skip_clippy ) ,, $( CLIPPY_DRIVER ) ) $( RUSTC ) $( rustc_flags ) \
109- $(rustc_cross_flags ) $(rustc_target_flags ) \
109+ $(if $(skip_clippy ) ,$( RUSTC ), $( RUSTC_OR_CLIPPY ) ) \
110+ $(rustc_flags ) $( rustc_cross_flags ) $(rustc_target_flags ) \
110111 --crate-type rlib --out-dir $(objtree ) /rust/ -L $(objtree ) /rust/ \
111112 --crate-name $(patsubst % .o,% ,$(notdir $@ ) ) $< ; \
112113 mv $(objtree ) /rust/$(patsubst % .o,% ,$(notdir $@ ) ) .d $(depfile ) ; \
0 commit comments