From d81cf0b9e39dd0526ccbf6c131e62cd8fb33f3e9 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Thu, 5 Oct 2023 13:09:40 +1100 Subject: [PATCH] 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 --- ports/rp2/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) 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