From 54372641398ac71b1162ff0c0f00aa9732981a4a Mon Sep 17 00:00:00 2001 From: Thom Wiggers Date: Tue, 3 Mar 2020 11:03:30 -0500 Subject: [PATCH] Add -g3 debug information to ASAN builds (#641) This helps track where it's crashing --- .CMake/sanitizers.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.CMake/sanitizers.cmake b/.CMake/sanitizers.cmake index 0db0241f2..86201dcae 100644 --- a/.CMake/sanitizers.cmake +++ b/.CMake/sanitizers.cmake @@ -30,7 +30,7 @@ function(append value) endfunction() if(USE_SANITIZER) - append("-fno-omit-frame-pointer" CMAKE_C_FLAGS CMAKE_CXX_FLAGS) + append("-fno-omit-frame-pointer -g3" CMAKE_C_FLAGS CMAKE_CXX_FLAGS) if(UNIX) @@ -86,4 +86,4 @@ if(USE_SANITIZER) message(FATAL_ERROR "USE_SANITIZER is not supported on this platform.") endif() -endif() \ No newline at end of file +endif()