Prevent massive end-of-process leak sanitizer dump

This commit is contained in:
Janek Bevendorff 2017-03-14 15:32:48 +01:00
parent 28ec015ef4
commit 504bd40263
No known key found for this signature in database
GPG key ID: CFEC2F6850BFFA53
2 changed files with 15 additions and 3 deletions

View file

@ -85,7 +85,7 @@ add_gcc_compiler_cxxflags("-fno-exceptions -fno-rtti")
add_gcc_compiler_cxxflags("-Wnon-virtual-dtor -Wold-style-cast -Woverloaded-virtual")
add_gcc_compiler_cflags("-Wchar-subscripts -Wwrite-strings")
if(WITH_ASAN)
add_gcc_compiler_flags("-fsanitize=address")
add_gcc_compiler_flags("-fsanitize=address -DWITH_ASAN")
endif()
string(TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_LOWER)