Skip to contentSkip to conversation

LLVMLinux: Change DWARF flag to support gcc and clang

PATCH New [email protected] 1 participant 1 message Mar 22, 2014 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 LLVMLinux: Change DWARF flag to support gcc and clang

From: Behan Webster <[email protected]>

Both gcc (well, actually gnu as) and clang support the "-Wa,-gdwarf-2" option (though clang does not support "-Wa,--gdwarf-2"). Since these flags are equivalent in meaning, this patch uses the one which is better supported across compilers.

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
index ef779ec..dc88989 100644
@@ -641,7 +641,7 @@ endif
 
 ifdef CONFIG_DEBUG_INFO
 KBUILD_CFLAGS	+= -g
-KBUILD_AFLAGS	+= -Wa,--gdwarf-2
+KBUILD_AFLAGS	+= -Wa,-gdwarf-2
 endif
 
 ifdef CONFIG_DEBUG_INFO_REDUCED
Signature · 1 line
1.8.3.2