Skip to content

Commit

Permalink
all: LLVMLinux: Change DWARF flag to support gcc and clang
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Behan Webster committed Jun 7, 2014
1 parent 066c680 commit 2288328
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,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
Expand Down

0 comments on commit 2288328

Please sign in to comment.