Revert "cmake: remove enforcement of DWARF v4"
This reverts commit 9d849d92bf
that seems to
be causing dozens of basic kernel test failures across various platforms.
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
parent
86c979147d
commit
eacd5527aa
3 changed files with 9 additions and 1 deletions
|
@ -214,6 +214,10 @@ set_compiler_property(PROPERTY linker_script -T)
|
|||
# Flags to not track macro expansion
|
||||
set_compiler_property(PROPERTY no_track_macro_expansion -ftrack-macro-expansion=0)
|
||||
|
||||
# GCC 11 by default emits DWARF version 5 which cannot be parsed by
|
||||
# pyelftools. Can be removed once pyelftools supports v5.
|
||||
check_set_compiler_property(APPEND PROPERTY debug -gdwarf-4)
|
||||
|
||||
set_compiler_property(PROPERTY no_common -fno-common)
|
||||
|
||||
# GCC compiler flags for imacros. The specific header must be appended by user.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue