aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-02-21 22:22:57 -0500
committerJustin M. Keyes <justinkz@gmail.com>2016-02-22 00:37:16 -0500
commit609dad3799caff18bdcf043585c17e0d7d11d3d0 (patch)
tree16b6ab13028f4143b3823ddffb15442ea4473fd7
parentd9291954b9859ecb9dced7eb6e6285bc52b76f17 (diff)
downloadrneovim-609dad3799caff18bdcf043585c17e0d7d11d3d0.tar.gz
rneovim-609dad3799caff18bdcf043585c17e0d7d11d3d0.tar.bz2
rneovim-609dad3799caff18bdcf043585c17e0d7d11d3d0.zip
Revert "Enable link-time optimisations on Release build."
This reverts commit 1132b67b5b21e10678387511ed5006114ca186ba. See https://github.com/neovim/neovim/pull/4313#discussion_r53570725
-rw-r--r--CMakeLists.txt6
1 files changed, 0 insertions, 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")