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>
pull/12593/head
Angus Gratton 2023-10-05 13:09:40 +11:00 zatwierdzone przez Damien George
rodzic 040a96d00e
commit d81cf0b9e3
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -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