From 1d4840a13a2e1ef868ad834eb83a5c137da426bb Mon Sep 17 00:00:00 2001 From: Lewis Russell Date: Sat, 8 Oct 2022 15:35:07 +0100 Subject: 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. --- src/nvim/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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() -- cgit