mirror of
https://github.com/Z3Prover/z3
synced 2025-07-18 02:16:40 +00:00
[CMake] Add CMake option API_LOG_SYNC
that corresponds to the
`--log-sync` option added to the python/Makefile build system
added in dee7c29b19
.
This commit is contained in:
parent
b782ec35cc
commit
702347ddac
2 changed files with 18 additions and 0 deletions
|
@ -318,6 +318,23 @@ else()
|
|||
set(USE_OPENMP OFF CACHE BOOL "Use OpenMP" FORCE)
|
||||
endif()
|
||||
|
||||
################################################################################
|
||||
# API Log sync
|
||||
################################################################################
|
||||
option(API_LOG_SYNC
|
||||
"Use locking when logging Z3 API calls (experimental)"
|
||||
OFF
|
||||
)
|
||||
if (API_LOG_SYNC)
|
||||
if (NOT USE_OPENMP)
|
||||
message(FATAL_ERROR "API_LOG_SYNC feature requires OpenMP")
|
||||
endif()
|
||||
list(APPEND Z3_COMPONENT_CXX_DEFINES "-DZ3_LOG_SYNC")
|
||||
message(STATUS "Using API_LOG_SYNC")
|
||||
else()
|
||||
message(STATUS "Not using API_LOG_SYNC")
|
||||
endif()
|
||||
|
||||
################################################################################
|
||||
# FP math
|
||||
################################################################################
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue