cmake: Always use Dwarf 4 for IAR
The IAR linker does not handle Dwarf 5 and since it uses the GCC assembler for assembler files, we need to make sure the assembler output uses Dwarf 4. Signed-off-by: Lars-Ove Karlsson <lars-ove.karlsson@iar.com>
This commit is contained in:
parent
e1c8805def
commit
4b40295e01
1 changed files with 2 additions and 4 deletions
|
@ -90,10 +90,8 @@ if("${IAR_TOOLCHAIN_VARIANT}" STREQUAL "iccarm")
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CONFIG_DEBUG)
|
# IAR needs Dwarf 4 output
|
||||||
# GCC defaults to Dwarf 5 output
|
list(APPEND IAR_ASM_FLAGS -gdwarf-4)
|
||||||
list(APPEND IAR_ASM_FLAGS -gdwarf-4)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(DEFINED CONFIG_ARM_SECURE_FIRMWARE)
|
if(DEFINED CONFIG_ARM_SECURE_FIRMWARE)
|
||||||
list(APPEND IAR_COMMON_FLAGS --cmse)
|
list(APPEND IAR_COMMON_FLAGS --cmse)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue