Enable optional use of ASAN
AdressSanitizer is a lightweight memory error detector that instruments at compile time instead of at execution time. This allows serious memory errors to be detected without the cost of slowing down the whole program that often happens when Valgrind is used. It is also easier to enable for test runs as it is a simple compiler flag.
This commit is contained in:
@ -62,3 +62,6 @@ set(PACKAGE_NAME "maxscale" CACHE STRING "Name of the generated package")
|
||||
|
||||
# Which component to build (core, experimental, devel)
|
||||
set(TARGET_COMPONENT "core" CACHE STRING "Which component to build (core, experimental, devel, all)")
|
||||
|
||||
# Enable AddressSanitizer: https://github.com/google/sanitizers/wiki/AddressSanitizer
|
||||
set(WITH_ASAN FALSE CACHE BOOL "Enable AddressSanitizer")
|
||||
|
Reference in New Issue
Block a user