fix: add size optimization

This flag is also present in the Makefile and optimises the resulting binary for the size of the binary. Without that flag the flash consumption would be too high to fit inside the allocated space.

Signed-off-by: Andreas Kurz <info@akurz.net>
This commit is contained in:
Andreas Kurz committed 2025-05-09 10:17:09 +02:00
1 parent a48e944f0b
commit 73020f3567
1 file changed
+2 -1
+2 -1
View File
@@ -170,6 +170,7 @@ target_compile_options(bootloader PUBLIC
-Wmissing-format-attribute
-Wno-endif-labels
-Wunreachable-code
-Os
# Suppress warning caused by SDK
-Wno-unused-parameter -Wno-expansion-to-defined -Wno-array-bounds
)
@@ -333,4 +334,4 @@ add_custom_target(flash-mbr
add_custom_target(flash-erase
COMMAND ${NRFJPROG} -f nrf52 --eraseall
)
)