diff --git a/Makefile b/Makefile index e3d63d529e0d..6cbd4890cfa2 100644 --- a/Makefile +++ b/Makefile @@ -870,7 +870,9 @@ else DEBUG_CFLAGS += -g endif -ifndef CONFIG_AS_IS_LLVM +ifdef CONFIG_AS_IS_LLVM +KBUILD_AFLAGS += -g +else KBUILD_AFLAGS += -Wa,-gdwarf-2 endif