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:
parent
040a96d00e
commit
d81cf0b9e3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user