mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
build: remove -O2 from gen_cflags
Problem:
zig cc implicitly defines NDEBUG with -O2. This breaks debug builds
which does not include -O2 or NDEBUG.
Solution:
Do not add -O2 when generating header files.
(cherry picked from commit e5ff302033
)
This commit is contained in:
committed by
github-actions[bot]
parent
bc1e168e49
commit
b397b5672c
@ -477,7 +477,6 @@ endif()
|
|||||||
if(MSVC)
|
if(MSVC)
|
||||||
list(APPEND gen_cflags -wd4003)
|
list(APPEND gen_cflags -wd4003)
|
||||||
endif()
|
endif()
|
||||||
list(APPEND gen_cflags -O2)
|
|
||||||
|
|
||||||
set(NVIM_VERSION_GIT_H ${PROJECT_BINARY_DIR}/cmake.config/auto/versiondef_git.h)
|
set(NVIM_VERSION_GIT_H ${PROJECT_BINARY_DIR}/cmake.config/auto/versiondef_git.h)
|
||||||
add_custom_target(update_version_stamp
|
add_custom_target(update_version_stamp
|
||||||
|
Reference in New Issue
Block a user