diff options
| author | Angus Gratton <angus@redyak.com.au> | 2023-10-05 13:09:40 +1100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2023-10-05 14:08:17 +1100 |
| commit | d81cf0b9e39dd0526ccbf6c131e62cd8fb33f3e9 (patch) | |
| tree | 3a8855846eadab96a564274f13605215dea7a057 | |
| parent | 040a96d00eaec0990541debc0310a6ff56d082d0 (diff) | |
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>
| -rw-r--r-- | ports/rp2/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ports/rp2/CMakeLists.txt b/ports/rp2/CMakeLists.txt index 7718697b4..fae4cda75 100644 --- a/ports/rp2/CMakeLists.txt +++ b/ports/rp2/CMakeLists.txt @@ -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 |
