Skip to content

Commit d81cf0b

Browse files
projectgusdpgeorge
authored andcommitted
rp2/CMakeLists: Enable debug symbols in all builds.
Allows using gdb, addr2line, etc. on a "release" ELF file. No impact to .bin or .uf2 size, only the .elf will get bigger. This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <angus@redyak.com.au>
1 parent 040a96d commit d81cf0b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ports/rp2/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,7 @@ target_include_directories(${MICROPY_TARGET} PRIVATE
406406
target_compile_options(${MICROPY_TARGET} PRIVATE
407407
-Wall
408408
-Werror
409+
-g # always include debug information in the ELF
409410
)
410411
411412
target_link_options(${MICROPY_TARGET} PRIVATE

0 commit comments

Comments
 (0)