Only enable LTO on release builds
This commit is contained in:
parent
182fbe195a
commit
91cf44a0de
1 changed files with 3 additions and 1 deletions
|
@ -73,7 +73,9 @@ set(CROSS_LIBS
|
|||
add_subdirectory(extern)
|
||||
|
||||
# enable lto
|
||||
if (CMAKE_BUILD_TYPE EQUAL "Release")
|
||||
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
|
||||
endif ()
|
||||
|
||||
add_subdirectory(platforms)
|
||||
|
||||
|
|
Reference in a new issue