mirror of
https://github.com/neovim/neovim.git
synced 2025-10-13 21:36:05 +00:00
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.
This commit is contained in:
@@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user