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:
committed by
Damien George
parent
040a96d00e
commit
d81cf0b9e3
@@ -406,6 +406,7 @@ target_include_directories(${MICROPY_TARGET} PRIVATE
|
|||||||
target_compile_options(${MICROPY_TARGET} PRIVATE
|
target_compile_options(${MICROPY_TARGET} PRIVATE
|
||||||
-Wall
|
-Wall
|
||||||
-Werror
|
-Werror
|
||||||
|
-g # always include debug information in the ELF
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_options(${MICROPY_TARGET} PRIVATE
|
target_link_options(${MICROPY_TARGET} PRIVATE
|
||||||
|
|||||||
Reference in New Issue
Block a user