Add -g3 debug information to ASAN builds (#641)

This helps track where it's crashing
This commit is contained in:
Thom Wiggers 2020-03-03 11:03:30 -05:00 committed by GitHub
parent 24eb40f121
commit 5437264139
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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