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:
Lewis Russell
2022-10-08 15:35:07 +01:00
parent 9207ad5c84
commit 1d4840a13a

View File

@@ -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()