cmake: only enable LTO when release + linux + ci

This commit is contained in:
Ashcon Partovi
2024-10-22 13:10:58 -07:00
committed by GitHub
parent 3db0191409
commit b9240f6ec7

View File

@@ -79,7 +79,7 @@ endif()
optionx(CANARY_REVISION STRING "The canary revision of the build" DEFAULT ${DEFAULT_CANARY_REVISION})
if(RELEASE AND LINUX)
if(RELEASE AND LINUX AND CI)
set(DEFAULT_LTO ON)
else()
set(DEFAULT_LTO OFF)