Archived
1
Fork 0

Only enable LTO on release builds

This commit is contained in:
redstrate 2021-10-11 14:33:45 -04:00
parent 182fbe195a
commit 91cf44a0de

View file

@ -73,7 +73,9 @@ set(CROSS_LIBS
add_subdirectory(extern)
# enable lto
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
if (CMAKE_BUILD_TYPE EQUAL "Release")
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
endif ()
add_subdirectory(platforms)