Skip to content

Commit 3ab9a1c

Browse files
remove deprecated USE_OPENMP, rename API_LOG_SYNC to Z3_API_LOG_SYNC (tiny part of #2709)
Signed-off-by: Nikolaj Bjorner <[email protected]>
1 parent 3729458 commit 3ab9a1c

8 files changed

+6
-22
lines changed

.travis.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,6 @@ env:
5454
# Test with LibGMP and API docs
5555
- LINUX_BASE=ubuntu_16.04 TARGET_ARCH=x86_64 USE_LIBGMP=1 BUILD_DOCS=1 PYTHON_EXECUTABLE=/usr/bin/python2.7
5656

57-
# Test without OpenMP
58-
- LINUX_BASE=ubuntu_16.04 C_COMPILER=/usr/bin/gcc-5 CXX_COMPILER=/usr/bin/g++-5 TARGET_ARCH=x86_64 Z3_BUILD_TYPE=RelWithDebInfo USE_OPENMP=0
59-
6057
# Unix Makefile generator build
6158
- LINUX_BASE=ubuntu_16.04 C_COMPILER=/usr/bin/gcc-5 CXX_COMPILER=/usr/bin/g++-5 TARGET_ARCH=x86_64 Z3_CMAKE_GENERATOR="Unix Makefiles"
6259

@@ -83,8 +80,7 @@ matrix:
8380
# OS to a minimum.
8481
- os: osx
8582
osx_image: xcode8.3
86-
# Note: Apple Clang does not support OpenMP
87-
env: Z3_BUILD_TYPE=RelWithDebInfo USE_OPENMP=0 DOTNET_BINDINGS=0
83+
env: Z3_BUILD_TYPE=RelWithDebInfo DOTNET_BINDINGS=0
8884
script:
8985
# Use `travis_wait` when doing LTO builds because this configuration will
9086
# have long link times during which it will not show any output which

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,13 +259,13 @@ endif()
259259
################################################################################
260260
# API Log sync
261261
################################################################################
262-
option(API_LOG_SYNC
262+
option(Z3_API_LOG_SYNC
263263
"Use locking when logging Z3 API calls (experimental)"
264264
OFF
265265
)
266-
if (API_LOG_SYNC)
266+
if (Z3_API_LOG_SYNC)
267267
list(APPEND Z3_COMPONENT_CXX_DEFINES "-DZ3_LOG_SYNC")
268-
message(STATUS "Using API_LOG_SYNC")
268+
message(STATUS "Using Z3_API_LOG_SYNC")
269269
else()
270270
message(STATUS "Not using API_LOG_SYNC")
271271
endif()

README-CMake.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ The following useful options can be passed to CMake whilst configuring.
244244
* ``ENABLE_TRACING_FOR_NON_DEBUG`` - BOOL. If set to ``TRUE`` enable tracing in non-debug builds, if set to ``FALSE`` disable tracing in non-debug builds. Note in debug builds tracing is always enabled.
245245
* ``BUILD_LIBZ3_SHARED`` - BOOL. If set to ``TRUE`` build libz3 as a shared library otherwise build as a static library.
246246
* ``ENABLE_EXAMPLE_TARGETS`` - BOOL. If set to ``TRUE`` add the build targets for building the API examples.
247-
* ``USE_OPENMP`` - BOOL. If set to ``TRUE`` and OpenMP support is detected build with OpenMP support.
248247
* ``USE_LIB_GMP`` - BOOL. If set to ``TRUE`` use the GNU multiple precision library. If set to ``FALSE`` use an internal implementation.
249248
* ``PYTHON_EXECUTABLE`` - STRING. The python executable to use during the build.
250249
* ``BUILD_PYTHON_BINDINGS`` - BOOL. If set to ``TRUE`` then Z3's python bindings will be built.
@@ -267,7 +266,7 @@ The following useful options can be passed to CMake whilst configuring.
267266
* ``LINK_TIME_OPTIMIZATION`` - BOOL. If set to ``TRUE`` link time optimization will be enabled.
268267
* ``ENABLE_CFI`` - BOOL. If set to ``TRUE`` will enable Control Flow Integrity security checks. This is only supported by MSVC and Clang and will
269268
fail on other compilers. This requires LINK_TIME_OPTIMIZATION to also be enabled.
270-
* ``API_LOG_SYNC`` - BOOL. If set to ``TRUE`` will enable experimental API log sync feature.
269+
* ``Z3_API_LOG_SYNC`` - BOOL. If set to ``TRUE`` will enable experimental API log sync feature.
271270
* ``WARNINGS_AS_ERRORS`` - STRING. If set to ``TRUE`` compiler warnings will be treated as errors. If set to ``False`` compiler warnings will not be treated as errors.
272271
If set to ``SERIOUS_ONLY`` a subset of compiler warnings will be treated as errors.
273272
* ``Z3_C_EXAMPLES_FORCE_CXX_LINKER`` - BOOL. If set to ``TRUE`` the C API examples will request that the C++ linker is used rather than the C linker.

contrib/ci/Dockerfiles/z3_build.Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ ARG TEST_INSTALL
2323
ARG UBSAN_BUILD
2424
ARG USE_LIBGMP
2525
ARG USE_LTO
26-
ARG USE_OPENMP
2726
ARG Z3_SRC_DIR=/home/user/z3_src
2827
ARG Z3_BUILD_TYPE
2928
ARG Z3_CMAKE_GENERATOR
@@ -53,7 +52,6 @@ ENV \
5352
UBSAN_BUILD=${UBSAN_BUILD} \
5453
USE_LIBGMP=${USE_LIBGMP} \
5554
USE_LTO=${USE_LTO} \
56-
USE_OPENMP=${USE_OPENMP} \
5755
Z3_SRC_DIR=${Z3_SRC_DIR} \
5856
Z3_BUILD_DIR=/home/user/z3_build \
5957
Z3_BUILD_TYPE=${Z3_BUILD_TYPE} \

contrib/ci/README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ the future.
3939
* `UBSAN_BUILD` - Do [UndefinedBehaviourSanitizer](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) build (`0` or `1`)
4040
* `USE_LIBGMP` - Use [GNU multiple precision library](https://gmplib.org/) (`0` or `1`)
4141
* `USE_LTO` - Link binaries using link time optimization (`0` or `1`)
42-
* `USE_OPENMP` - Use OpenMP (`0` or `1`)
4342
* `Z3_BUILD_TYPE` - CMake build type (`RelWithDebInfo`, `Release`, `Debug`, or `MinSizeRel`)
4443
* `Z3_CMAKE_GENERATOR` - CMake generator (`Ninja` or `Unix Makefiles`)
4544
* `Z3_VERBOSE_BUILD_OUTPUT` - Show compile commands in CMake builds (`0` or `1`)
@@ -133,16 +132,14 @@ To reproduce a build (e.g. like the one shown below)
133132
```yaml
134133
- os: osx
135134
osx_image: xcode8.3
136-
# Note: Apple Clang does not support OpenMP
137-
env: Z3_BUILD_TYPE=RelWithDebInfo USE_OPENMP=0
135+
env: Z3_BUILD_TYPE=RelWithDebInfo
138136
```
139137
140138
Run the following:
141139
142140
```bash
143141
TRAVIS_BUILD_DIR=$(pwd) \
144142
Z3_BUILD_TYPE=RelWithDebInfo \
145-
USE_OPEN_MP=0 \
146143
contrib/ci/scripts/travis_ci_osx_entry_point.sh
147144
```
148145

contrib/ci/scripts/build_z3_cmake.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ set -o pipefail
1212
: ${Z3_BUILD_TYPE?"Z3_BUILD_TYPE must be specified"}
1313
: ${Z3_CMAKE_GENERATOR?"Z3_CMAKE_GENERATOR must be specified"}
1414
: ${Z3_STATIC_BUILD?"Z3_STATIC_BUILD must be specified"}
15-
: ${USE_OPENMP?"USE_OPENMP must be specified"}
1615
: ${USE_LIBGMP?"USE_LIBGMP must be specified"}
1716
: ${BUILD_DOCS?"BUILD_DOCS must be specified"}
1817
: ${PYTHON_EXECUTABLE?"PYTHON_EXECUTABLE must be specified"}

contrib/ci/scripts/ci_defaults.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ export TEST_INSTALL="${TEST_INSTALL:-1}"
2121
export UBSAN_BUILD="${UBSAN_BUILD:-0}"
2222
export USE_LIBGMP="${USE_LIBGMP:-0}"
2323
export USE_LTO="${USE_LTO:-0}"
24-
export USE_OPENMP="${USE_OPENMP:-1}"
2524

2625
export Z3_BUILD_TYPE="${Z3_BUILD_TYPE:-RelWithDebInfo}"
2726
export Z3_CMAKE_GENERATOR="${Z3_CMAKE_GENERATOR:-Ninja}"

contrib/ci/scripts/travis_ci_linux_entry_point.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@ if [ -n "${Z3_CMAKE_GENERATOR}" ]; then
3030
BUILD_OPTS+=("--build-arg" "Z3_CMAKE_GENERATOR=${Z3_CMAKE_GENERATOR}")
3131
fi
3232

33-
if [ -n "${USE_OPENMP}" ]; then
34-
BUILD_OPTS+=("--build-arg" "USE_OPENMP=${USE_OPENMP}")
35-
fi
36-
3733
if [ -n "${USE_LIBGMP}" ]; then
3834
BUILD_OPTS+=("--build-arg" "USE_LIBGMP=${USE_LIBGMP}")
3935
fi

0 commit comments

Comments
 (0)