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:
co-authored by
raphaelcoeffic
parent
fb7d8e23dc
commit
9da9077616
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user