mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-30 22:03:17 +01:00
kbuild: enable -Werror for hostprogs
The hostprog compilers and linkers do not share the regular compiler flags, so they are not affected by CONFIG_WERROR or W=e. As hostprogs are used during the bootstrap of the build, they can't depend on kconfig options. Enable -Werror unconditionally. Signed-off-by: Thomas Weißschuh <[email protected]> Link: https://lore.kernel.org/rust-for-linux/CANiq72k-PdSH2BNgbq=X+FhpyEErifSCKfO5ObXz6bu9_J8+fA@mail.gmail.com/ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Nathan Chancellor <[email protected]>
This commit is contained in:
1 parent
3f0ff4cc6f
commit
27758d8c25
1 file changed
+5
@@ -224,3 +224,8 @@ KBUILD_USERLDFLAGS += -Wl,--fatal-warnings
|
||||
KBUILD_RUSTFLAGS += -Dwarnings
|
||||
|
||||
endif
|
||||
|
||||
# Hostprog flags are used during build bootstrapping and can not rely on CONFIG_ symbols.
|
||||
KBUILD_HOSTCFLAGS += -Werror
|
||||
KBUILD_HOSTLDFLAGS += -Wl,--fatal-warnings
|
||||
KBUILD_HOSTRUSTFLAGS += -Dwarnings
|
||||
Reference in new issue
Block a user