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})