Optimize compilation flags (#1206)

* restoring -O3 on baseband, activating lto on cpp parts
This commit is contained in:
gullradriel
2023-06-28 21:46:49 +02:00
committed by GitHub
parent 3d59de55f8
commit 830fea63ed
2 changed files with 3 additions and 3 deletions

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)