* [PATCH] LLVMLinux: Change DWARF flag to support gcc and clang
@ 2014-03-22 15:50 behanw
0 siblings, 0 replies; only message in thread
From: behanw @ 2014-03-22 15:50 UTC (permalink / raw)
To: mmarek; +Cc: linux-kbuild, linux-kernel, dwmw2, pageexec, Behan Webster
From: Behan Webster <behanw@converseincode.com>
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.
Signed-off-by: Behan Webster <behanw@converseincode.com>
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index ef779ec..dc88989 100644
--- a/Makefile
+++ b/Makefile
@@ -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
--
1.8.3.2
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-03-22 15:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-22 15:50 [PATCH] LLVMLinux: Change DWARF flag to support gcc and clang behanw
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®