Use AddressSanitizer in debug build
This commit is contained in:
parent
8fa0cdb543
commit
0a6a85ea61
@ -161,6 +161,7 @@ else()
|
|||||||
# compile flags can be simplye be added
|
# compile flags can be simplye be added
|
||||||
if(CMAKE_BUILD_TYPE MATCHES Debug)
|
if(CMAKE_BUILD_TYPE MATCHES Debug)
|
||||||
add_definitions(-DDEBUG)
|
add_definitions(-DDEBUG)
|
||||||
|
add_definitions("-fsanitize=address")
|
||||||
else()
|
else()
|
||||||
add_definitions(-DNDEBUG)
|
add_definitions(-DNDEBUG)
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user