Skip to content

Commit d0d0f29

Browse files
committed
Remove debug info from xip_ram_perms.elf (#139)
This embedded local paths of the build machine into the elf file, which was undesirable behaviour
1 parent 3ff7c3e commit d0d0f29

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ if (NOT PICOTOOL_NO_LIBUSB)
7070
"-DCMAKE_MAKE_PROGRAM:FILEPATH=${CMAKE_MAKE_PROGRAM}"
7171
"-DPICO_SDK_PATH:FILEPATH=${PICO_SDK_PATH}"
7272
"-DUSE_PRECOMPILED:BOOL=${USE_PRECOMPILED}"
73+
"-DPICO_DEBUG_INFO_IN_RELEASE=OFF"
7374
BUILD_ALWAYS 1 # todo remove this
7475
INSTALL_COMMAND ""
7576
)
@@ -93,6 +94,7 @@ if (NOT PICOTOOL_NO_LIBUSB)
9394
"-DCMAKE_MAKE_PROGRAM:FILEPATH=${CMAKE_MAKE_PROGRAM}"
9495
"-DPICO_SDK_PATH:FILEPATH=${PICO_SDK_PATH}"
9596
"-DUSE_PRECOMPILED:BOOL=${USE_PRECOMPILED}"
97+
"-DPICO_DEBUG_INFO_IN_RELEASE=OFF"
9698
BUILD_ALWAYS 1 # todo remove this
9799
INSTALL_COMMAND ""
98100
)

xip_ram_perms/xip_ram_perms.elf

-300 KB
Binary file not shown.

0 commit comments

Comments
 (0)