mirror of
https://github.com/Z3Prover/z3
synced 2025-08-31 15:24:55 +00:00
add cmake option to turn on asan
This commit is contained in:
parent
a8279dd9d5
commit
fd5f5feb40
2 changed files with 11 additions and 0 deletions
|
@ -300,6 +300,16 @@ list(APPEND Z3_DEPENDENT_LIBS Threads::Threads)
|
|||
################################################################################
|
||||
include(${PROJECT_SOURCE_DIR}/cmake/compiler_warnings.cmake)
|
||||
|
||||
|
||||
################################################################################
|
||||
# Address sanitization
|
||||
################################################################################
|
||||
option(Z3_ADDRESS_SANITIZE "Set address sanitization." OFF)
|
||||
|
||||
if (Z3_ADDRESS_SANITIZE)
|
||||
z3_add_cxx_flag("-fsanitize=address" REQUIRED)
|
||||
endif()
|
||||
|
||||
################################################################################
|
||||
# Save Clang optimization records
|
||||
################################################################################
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue