CMake: Disable LTO again by default
After some experimentation results with GCC and clang seem poor, compilation times are terrible and I don't feel confident enabling it by default yet. More testing is needed.
This commit is contained in:
parent
02f4dcb0ad
commit
92269631a7
@ -63,13 +63,13 @@ else()
|
|||||||
option(ENABLE_COMPILER_COLOR_DIAGNOSTICS "Always enable the compiler's color diagnostic output" OFF)
|
option(ENABLE_COMPILER_COLOR_DIAGNOSTICS "Always enable the compiler's color diagnostic output" OFF)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CMAKE_VERSION VERSION_GREATER "3.8.99")
|
if(WIN32)
|
||||||
option(ENABLE_LTO "Improves performance using Link time Optimization" ON)
|
option(ENABLE_LTO "Improves performance using Link Time Optimization" ON)
|
||||||
else()
|
elseif(CMAKE_VERSION VERSION_GREATER "3.8.99")
|
||||||
option(ENABLE_LTO "Improves performance using Link time Optimization" OFF)
|
option(ENABLE_LTO "Improves performance using Link Time Optimization" OFF)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (WIN32)
|
if(WIN32)
|
||||||
option(ENABLE_VLD "Enable Visual Leak Detect in Debug configuration" OFF)
|
option(ENABLE_VLD "Enable Visual Leak Detect in Debug configuration" OFF)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user