Revert "Enable link-time optimisations on Release build."

This reverts commit 1132b67b5b.
See https://github.com/neovim/neovim/pull/4313#discussion_r53570725
This commit is contained in:
Justin M. Keyes 2016-02-21 22:22:57 -05:00
parent d9291954b9
commit 609dad3799

View File

@ -82,12 +82,6 @@ if(CMAKE_C_FLAGS_RELEASE MATCHES "-O3")
string(REPLACE "-O3" "-O2" CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}")
endif()
# Enable link-time optimisations on release builds.
check_c_compiler_flag(-flto HAS_FLTO_FLAG)
if(HAS_FLTO_FLAG)
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS} -flto")
endif()
# Disable logging for release-type builds.
if(NOT CMAKE_C_FLAGS_RELEASE MATCHES DDISABLE_LOG)
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -DDISABLE_LOG")