From 9da907761625dc9dec3cf1d427cc0f7da77d95b8 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Sat, 23 Aug 2025 11:45:05 +0200 Subject: [PATCH] fix(bw): enable LTO for `board_bl` to prevent bootloader overflow (#6541) Co-authored-by: raphaelcoeffic <1050031+raphaelcoeffic@users.noreply.github.com> --- radio/src/bootloader/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/radio/src/bootloader/CMakeLists.txt b/radio/src/bootloader/CMakeLists.txt index 905d967d3..0caa0866e 100644 --- a/radio/src/bootloader/CMakeLists.txt +++ b/radio/src/bootloader/CMakeLists.txt @@ -52,6 +52,7 @@ if(NOT NO_LTO) target_compile_options(stm32_drivers PRIVATE -flto) target_compile_options(stm32_drivers_w_dbg_fw PRIVATE -flto) target_compile_options(stm32_drivers_w_dbg_bl PRIVATE -flto) + target_compile_options(board_bl PRIVATE -flto) endif() add_executable(bootloader EXCLUDE_FROM_ALL ${BOOTLOADER_SRC})