cmake: force GCC to emit DWARF version 4
GCC 11 defaults to output DWARF version 5 which pyelftools cannot currently parse. So keep output at version 4 for the time being. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
bf87f98fa4
commit
72c2f182bc
|
@ -167,6 +167,10 @@ set_compiler_property(PROPERTY freestanding -ffreestanding)
|
|||
# Flag to enable debugging
|
||||
set_compiler_property(PROPERTY debug -g)
|
||||
|
||||
# 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…
Reference in a new issue