aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2022-10-08 15:35:07 +0100
committerLewis Russell <lewis6991@gmail.com>2022-10-08 16:06:32 +0100
commit1d4840a13a2e1ef868ad834eb83a5c137da426bb (patch)
treed1c018b0e34bcd52331a80183d4623e2dbe6c229
parent9207ad5c84a216bbd4ff5bb840e58281369d1b1d (diff)
downloadrneovim-1d4840a13a2e1ef868ad834eb83a5c137da426bb.tar.gz
rneovim-1d4840a13a2e1ef868ad834eb83a5c137da426bb.tar.bz2
rneovim-1d4840a13a2e1ef868ad834eb83a5c137da426bb.zip
build: remove EXITFREE for debug builds
When EXITFREE is defined, uv handles are not closed on exit in order to better detect memory leaks. However the cost of this is that by not closing the handles there can be lag when exiting nvim. This change removes EXITFREE from debug builds in order to avoid this exit lag for regular debug builders who are not running ASAN.
-rwxr-xr-xsrc/nvim/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt
index d07865ac6b..4c8defad45 100755
--- a/src/nvim/CMakeLists.txt
+++ b/src/nvim/CMakeLists.txt
@@ -166,7 +166,7 @@ if(NOT "${MIN_LOG_LEVEL}" MATCHES "^$")
add_definitions(-DMIN_LOG_LEVEL=${MIN_LOG_LEVEL})
endif()
-if(DEBUG OR CLANG_ASAN_UBSAN OR CLANG_MSAN OR CLANG_TSAN)
+if(CLANG_ASAN_UBSAN OR CLANG_MSAN OR CLANG_TSAN)
add_definitions(-DEXITFREE)
endif()