3
0
Fork 0
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:
Dan Liew 2017-05-22 17:11:25 +01:00
parent b782ec35cc
commit 702347ddac
2 changed files with 18 additions and 0 deletions

View file

@ -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
################################################################################