Skip to content

Commit 4ab34cf

Browse files
nordicjmmswarowsky
authored andcommitted
build: gcc: Force DWARF v4
This forces DWARF version 4 output so that zephyr debugging and usage still works with the pyelftools library which does not currently support v5. Signed-off-by: Jamie McCrae <[email protected]> (cherry picked from commit 231235f) Signed-off-by: Markus Swarowsky <[email protected]> Change-Id: I4b1fe5a2151aca5d04acca570f229bb9f0b7cdea
1 parent 9fd21a0 commit 4ab34cf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

toolchain_GNUARM.cmake

+2
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ add_compile_options(
121121
-nostdlib
122122
$<$<COMPILE_LANGUAGE:C>:-std=c99>
123123
$<$<COMPILE_LANGUAGE:CXX>:-std=c++11>
124+
# Force DWARF version 4 for zephyr as pyelftools does not support version 5 at present
125+
-gdwarf-4
124126
$<$<OR:$<BOOL:${TFM_DEBUG_SYMBOLS}>,$<BOOL:${TFM_CODE_COVERAGE}>>:-g>
125127
)
126128

0 commit comments

Comments
 (0)