mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
cmake: only enable LTO when release + linux + ci
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user