From f4496d8f45f0c5491e0b1475e6a47cd93325d022 Mon Sep 17 00:00:00 2001 From: Mark Thompson <129641948+NotherNgineer@users.noreply.github.com> Date: Thu, 24 Aug 2023 11:14:57 -0500 Subject: [PATCH] Enable lto optimization for application code only (#1405) Enabling for tonight's nightly build. (Haven't heard of any issues yet.) --- firmware/application/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/application/CMakeLists.txt b/firmware/application/CMakeLists.txt index 8aa4ef9c7..26d7acaf6 100644 --- a/firmware/application/CMakeLists.txt +++ b/firmware/application/CMakeLists.txt @@ -44,7 +44,7 @@ if(cpp20_supported) else() set(USE_CPPOPT "-std=c++17") endif() -set(USE_CPPOPT "${USE_CPPOPT} -fno-rtti -fno-exceptions -Weffc++ -Wuninitialized -Wno-volatile") +set(USE_CPPOPT "${USE_CPPOPT} -flto -fno-rtti -fno-exceptions -Weffc++ -Wuninitialized -Wno-volatile") # Enable this if you want the linker to remove unused code and data set(USE_LINK_GC yes)