From b5aa2722b7b23af50ff8706e4b843ae982bcd403 Mon Sep 17 00:00:00 2001 From: Balduin Date: Tue, 8 Sep 2026 11:33:27 +0200 Subject: [PATCH] feat(build): enable LTO unconditionally for flash-size evaluation --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c6633f070e9..90d4e3cfc31 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -317,7 +317,7 @@ set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug;Release;RelWithDebIn message(STATUS "cmake build type: ${CMAKE_BUILD_TYPE}") # Check if LTO option and check if toolchain supports it -if(LTO) +if(TRUE) # test-lto-flash: LTO unconditionally enabled include(CheckIPOSupported) check_ipo_supported() message(AUTHOR_WARNING "LTO enabled: LTO is highly experimental and should not be used in production")