mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-26 01:00:36 +08:00
feat(build): enable LTO unconditionally for flash-size evaluation
This commit is contained in:
1 parent
509b5b8d1a
commit
b5aa2722b7
1 file changed
+1
-1
+1
-1
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user