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>
This commit is contained in:
Angus Gratton 2023-10-05 13:09:40 +11:00 committed by Damien George
parent 040a96d00e
commit d81cf0b9e3

View File

@ -406,6 +406,7 @@ target_include_directories(${MICROPY_TARGET} PRIVATE
target_compile_options(${MICROPY_TARGET} PRIVATE
-Wall
-Werror
-g # always include debug information in the ELF
)
target_link_options(${MICROPY_TARGET} PRIVATE