diff --git a/Makefile b/Makefile index 96d4894be71d..908f6c9c3880 100644 --- a/Makefile +++ b/Makefile @@ -609,6 +609,9 @@ endif # Use make W=1 to enable them (see scripts/Makefile.build) KBUILD_CFLAGS += $(call cc-disable-warning, unused-but-set-variable) KBUILD_CFLAGS += $(call cc-disable-warning, unused-const-variable) +ifneq ($(LLVM),) +KBUILD_CFLAGS += -fuse-ld=lld +endif ifeq ($(mixed-targets),1) # ===========================================================================