Skip to content

Commit 2288328

Browse files
committed
all: LLVMLinux: Change DWARF flag to support gcc and clang
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 <[email protected]>
1 parent 066c680 commit 2288328

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ endif
671671

672672
ifdef CONFIG_DEBUG_INFO
673673
KBUILD_CFLAGS += -g
674-
KBUILD_AFLAGS += -Wa,--gdwarf-2
674+
KBUILD_AFLAGS += -Wa,-gdwarf-2
675675
endif
676676

677677
ifdef CONFIG_DEBUG_INFO_REDUCED

0 commit comments

Comments
 (0)