Enable lto optimization for application code only (#1405)

Enabling for tonight's nightly build.  (Haven't heard of any issues yet.)
This commit is contained in:
Mark Thompson 2023-08-24 11:14:57 -05:00 committed by GitHub
parent 966d1c938b
commit f4496d8f45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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