cmake: remove enforcement of DWARF v4
Remove the enforcement of DWARF v4 as pyelftools is able to parse DWARF v5. Signed-off-by: Benedikt Schmidt <benedikt.schmidt@embedded-solutions.at>
This commit is contained in:
parent
895db44388
commit
9d849d92bf
3 changed files with 1 additions and 9 deletions
|
@ -205,10 +205,6 @@ set_compiler_property(PROPERTY linker_script -T)
|
||||||
# Flags to not track macro expansion
|
# Flags to not track macro expansion
|
||||||
set_compiler_property(PROPERTY no_track_macro_expansion -ftrack-macro-expansion=0)
|
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)
|
set_compiler_property(PROPERTY no_common -fno-common)
|
||||||
|
|
||||||
# GCC compiler flags for imacros. The specific header must be appended by user.
|
# GCC compiler flags for imacros. The specific header must be appended by user.
|
||||||
|
|
|
@ -9,10 +9,6 @@ endif()
|
||||||
|
|
||||||
check_set_linker_property(TARGET linker APPEND PROPERTY gprof -pg)
|
check_set_linker_property(TARGET linker APPEND PROPERTY gprof -pg)
|
||||||
|
|
||||||
# GCC 11 by default emits DWARF version 5 which cannot be parsed by
|
|
||||||
# pyelftools. Can be removed once pyelftools supports v5.
|
|
||||||
add_link_options(-gdwarf-4)
|
|
||||||
|
|
||||||
# Extra warnings options for twister run
|
# Extra warnings options for twister run
|
||||||
set_property(TARGET linker PROPERTY warnings_as_errors -Wl,--fatal-warnings)
|
set_property(TARGET linker PROPERTY warnings_as_errors -Wl,--fatal-warnings)
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
# part of the recommended workflow
|
# part of the recommended workflow
|
||||||
|
|
||||||
# used by various build scripts
|
# used by various build scripts
|
||||||
pyelftools>=0.29
|
pyelftools>=0.31
|
||||||
|
|
||||||
# used by dts generation to parse binding YAMLs, also used by
|
# used by dts generation to parse binding YAMLs, also used by
|
||||||
# twister to parse YAMLs, by west, zephyr_module,...
|
# twister to parse YAMLs, by west, zephyr_module,...
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue