From 609dad3799caff18bdcf043585c17e0d7d11d3d0 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sun, 21 Feb 2016 22:22:57 -0500 Subject: Revert "Enable link-time optimisations on Release build." This reverts commit 1132b67b5b21e10678387511ed5006114ca186ba. See https://github.com/neovim/neovim/pull/4313#discussion_r53570725 --- CMakeLists.txt | 6 ------ 1 file changed, 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 73f33292ff..527a085d3e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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") -- cgit