diff --git a/Makefile b/Makefile index 1b141b70ac5c..0e30a1aa49ce 100644 --- a/Makefile +++ b/Makefile @@ -829,7 +829,9 @@ else DEBUG_CFLAGS += -g endif +ifneq ($(LLVM_IAS),1) KBUILD_AFLAGS += -Wa,-gdwarf-2 +endif ifdef CONFIG_DEBUG_INFO_DWARF4 DEBUG_CFLAGS += -gdwarf-4