mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
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:
parent
d9291954b9
commit
609dad3799
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user