fix(bw): enable LTO for board_bl to prevent bootloader overflow (#6541)

Co-authored-by: raphaelcoeffic <1050031+raphaelcoeffic@users.noreply.github.com>
This commit is contained in:
Raphael Coeffic
2025-08-23 11:45:05 +02:00
committed by GitHub
co-authored by raphaelcoeffic
parent fb7d8e23dc
commit 9da9077616
+1
View File
@@ -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})