diff options
author | Lewis Russell <lewis6991@gmail.com> | 2024-07-07 17:37:56 +0100 |
---|---|---|
committer | Lewis Russell <me@lewisr.dev> | 2024-07-07 19:46:32 +0100 |
commit | e5ff3020330e7c961299b991448653a46817188f (patch) | |
tree | a4b5b519c14d91210ceb108e2d50d96adcb4d93c | |
parent | 5b778a64ec2e82a7d8d28c3c36698cd42a41c539 (diff) | |
download | rneovim-e5ff3020330e7c961299b991448653a46817188f.tar.gz rneovim-e5ff3020330e7c961299b991448653a46817188f.tar.bz2 rneovim-e5ff3020330e7c961299b991448653a46817188f.zip |
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.
-rw-r--r-- | src/nvim/CMakeLists.txt | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt index 9c8fc7a413..03aa761650 100644 --- a/src/nvim/CMakeLists.txt +++ b/src/nvim/CMakeLists.txt @@ -482,7 +482,6 @@ endif() if(MSVC) list(APPEND gen_cflags -wd4003) endif() -list(APPEND gen_cflags -O2) set(NVIM_VERSION_GIT_H ${PROJECT_BINARY_DIR}/cmake.config/auto/versiondef_git.h) add_custom_target(update_version_stamp |