diff --git a/Makefile b/Makefile index ac1d12d07d7a..1c8121c3f5fe 100644 --- a/Makefile +++ b/Makefile @@ -775,8 +775,10 @@ KBUILD_CFLAGS += $(call cc-option, -gsplit-dwarf, -g) else KBUILD_CFLAGS += -g endif +ifneq ($(LLVM_IAS),1) KBUILD_AFLAGS += -Wa,-gdwarf-2 endif +endif ifdef CONFIG_DEBUG_INFO_DWARF4 KBUILD_CFLAGS += $(call cc-option, -gdwarf-4,) endif