mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Merge pull request #1426 from jszakmeister/change-release-opt-default
build: default to using -O2 for release builds
This commit is contained in:
commit
2aeda4ba6f
@ -42,6 +42,9 @@ if(APPLE)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Default to -O2 on release builds.
|
||||
string(REPLACE "-O3" "-O2" CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}")
|
||||
|
||||
# gcc 4.0 and better turn on _FORTIFY_SOURCE=2 automatically. This currently
|
||||
# does not work with Neovim due to some uses of dynamically-sized structures.
|
||||
# See https://github.com/neovim/neovim/issues/223 for details.
|
||||
|
Loading…
Reference in New Issue
Block a user