Skip to content

Commit 6b2262f

Browse files
committed
kbuild: rust: apply CONFIG_WERROR to hostprogs as well
Host programs should be (and currently are) warning-free. Apply `CONFIG_WERROR` (i.e. `-Dwarnings`) to them as well, so that they are kept that way. Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent 8db31d3 commit 6b2262f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,9 @@ KBUILD_CFLAGS += $(stackp-flags-y)
845845
KBUILD_RUSTFLAGS-$(CONFIG_WERROR) += -Dwarnings
846846
KBUILD_RUSTFLAGS += $(KBUILD_RUSTFLAGS-y)
847847

848+
KBUILD_HOSTRUSTFLAGS-$(CONFIG_WERROR) += -Dwarnings
849+
KBUILD_HOSTRUSTFLAGS += $(KBUILD_HOSTRUSTFLAGS-y)
850+
848851
ifdef CONFIG_FRAME_POINTER
849852
KBUILD_CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls
850853
KBUILD_RUSTFLAGS += -Cforce-frame-pointers=y

0 commit comments

Comments
 (0)