Skip to content

Commit 4f001a2

Browse files
committed
Kconfig.debug: simplify the dependency of DEBUG_INFO_DWARF4/5
Commit c0a5c81 ("Kconfig.debug: drop GCC 5+ version check for DWARF5") could have cleaned up the code a bit more. "CC_IS_CLANG &&" is unneeded. No functional change is intended. Signed-off-by: Masahiro Yamada <[email protected]> Reviewed-by: Nathan Chancellor <[email protected]>
1 parent e230253 commit 4f001a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Kconfig.debug

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ config DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT
264264
config DEBUG_INFO_DWARF4
265265
bool "Generate DWARF Version 4 debuginfo"
266266
select DEBUG_INFO
267-
depends on !CC_IS_CLANG || (CC_IS_CLANG && (AS_IS_LLVM || (AS_IS_GNU && AS_VERSION >= 23502)))
267+
depends on !CC_IS_CLANG || AS_IS_LLVM || (AS_IS_GNU && AS_VERSION >= 23502)
268268
help
269269
Generate DWARF v4 debug info. This requires gcc 4.5+, binutils 2.35.2
270270
if using clang without clang's integrated assembler, and gdb 7.0+.
@@ -276,7 +276,7 @@ config DEBUG_INFO_DWARF4
276276
config DEBUG_INFO_DWARF5
277277
bool "Generate DWARF Version 5 debuginfo"
278278
select DEBUG_INFO
279-
depends on !CC_IS_CLANG || (CC_IS_CLANG && (AS_IS_LLVM || (AS_IS_GNU && AS_VERSION >= 23502)))
279+
depends on !CC_IS_CLANG || AS_IS_LLVM || (AS_IS_GNU && AS_VERSION >= 23502)
280280
help
281281
Generate DWARF v5 debug info. Requires binutils 2.35.2, gcc 5.0+ (gcc
282282
5.0+ accepts the -gdwarf-5 flag but only had partial support for some

0 commit comments

Comments
 (0)