Skip to content

Commit 48554f0

Browse files
rename additional build options #2709
Signed-off-by: Nikolaj Bjorner <[email protected]>
1 parent b50f850 commit 48554f0

8 files changed

+14
-14
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,8 @@ list(APPEND Z3_COMPONENT_EXTRA_INCLUDE_DIRS
241241
################################################################################
242242
# GNU multiple precision library support
243243
################################################################################
244-
option(USE_LIB_GMP "Use GNU Multiple Precision Library" OFF)
245-
if (USE_LIB_GMP)
244+
option(Z3_USE_LIB_GMP "Use GNU Multiple Precision Library" OFF)
245+
if (Z3_USE_LIB_GMP)
246246
# Because this is off by default we will make the configure fail if libgmp
247247
# can't be found
248248
find_package(GMP REQUIRED)

README-CMake.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ The following useful options can be passed to CMake whilst configuring.
244244
* ``Z3_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
* ``Z3_ENABLE_EXAMPLE_TARGETS`` - BOOL. If set to ``TRUE`` add the build targets for building the API examples.
247-
* ``USE_LIB_GMP`` - BOOL. If set to ``TRUE`` use the GNU multiple precision library. If set to ``FALSE`` use an internal implementation.
247+
* ``Z3_USE_LIB_GMP`` - BOOL. If set to ``TRUE`` use the GNU multiple precision library. If set to ``FALSE`` use an internal implementation.
248248
* ``PYTHON_EXECUTABLE`` - STRING. The python executable to use during the build.
249249
* ``BUILD_PYTHON_BINDINGS`` - BOOL. If set to ``TRUE`` then Z3's python bindings will be built.
250250
* ``INSTALL_PYTHON_BINDINGS`` - BOOL. If set to ``TRUE`` and ``BUILD_PYTHON_BINDINGS`` is ``TRUE`` then running the ``install`` target will install Z3's Python bindings.

contrib/ci/Dockerfiles/z3_build.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ ARG SANITIZER_PRINT_SUPPRESSIONS
2121
ARG TARGET_ARCH
2222
ARG TEST_INSTALL
2323
ARG UBSAN_BUILD
24-
ARG USE_LIBGMP
24+
ARG Z3_USE_LIBGMP
2525
ARG USE_LTO
2626
ARG Z3_SRC_DIR=/home/user/z3_src
2727
ARG Z3_BUILD_TYPE
@@ -50,7 +50,7 @@ ENV \
5050
TARGET_ARCH=${TARGET_ARCH} \
5151
TEST_INSTALL=${TEST_INSTALL} \
5252
UBSAN_BUILD=${UBSAN_BUILD} \
53-
USE_LIBGMP=${USE_LIBGMP} \
53+
Z3_USE_LIBGMP=${Z3_USE_LIBGMP} \
5454
USE_LTO=${USE_LTO} \
5555
Z3_SRC_DIR=${Z3_SRC_DIR} \
5656
Z3_BUILD_DIR=/home/user/z3_build \

contrib/ci/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ the future.
3737
* `TARGET_ARCH` - Target architecture (`x86_64` or `i686`)
3838
* `TEST_INSTALL` - Test running `install` target (`0` or `1`)
3939
* `UBSAN_BUILD` - Do [UndefinedBehaviourSanitizer](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) build (`0` or `1`)
40-
* `USE_LIBGMP` - Use [GNU multiple precision library](https://gmplib.org/) (`0` or `1`)
40+
* `Z3_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`)
4242
* `Z3_BUILD_TYPE` - CMake build type (`RelWithDebInfo`, `Release`, `Debug`, or `MinSizeRel`)
4343
* `Z3_CMAKE_GENERATOR` - CMake generator (`Ninja` or `Unix Makefiles`)

contrib/ci/scripts/build_z3_cmake.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ 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_LIBGMP?"USE_LIBGMP must be specified"}
15+
: ${Z3_USE_LIBGMP?"Z3_USE_LIBGMP must be specified"}
1616
: ${BUILD_DOCS?"BUILD_DOCS must be specified"}
1717
: ${PYTHON_EXECUTABLE?"PYTHON_EXECUTABLE must be specified"}
1818
: ${PYTHON_BINDINGS?"PYTHON_BINDINGS must be specified"}
@@ -33,10 +33,10 @@ else
3333
fi
3434

3535
# Use LibGMP?
36-
if [ "X${USE_LIBGMP}" = "X1" ]; then
37-
ADDITIONAL_Z3_OPTS+=('-DUSE_LIB_GMP=ON')
36+
if [ "X${Z3_USE_LIBGMP}" = "X1" ]; then
37+
ADDITIONAL_Z3_OPTS+=('-DZ3_USE_LIB_GMP=ON')
3838
else
39-
ADDITIONAL_Z3_OPTS+=('-DUSE_LIB_GMP=OFF')
39+
ADDITIONAL_Z3_OPTS+=('-DZ3_USE_LIB_GMP=OFF')
4040
fi
4141

4242
# Use link time optimziation?

contrib/ci/scripts/ci_defaults.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export SANITIZER_PRINT_SUPPRESSIONS="${SANITIZER_PRINT_SUPPRESSIONS:-0}"
1919
export TARGET_ARCH="${TARGET_ARCH:-x86_64}"
2020
export TEST_INSTALL="${TEST_INSTALL:-1}"
2121
export UBSAN_BUILD="${UBSAN_BUILD:-0}"
22-
export USE_LIBGMP="${USE_LIBGMP:-0}"
22+
export Z3_USE_LIBGMP="${Z3_USE_LIBGMP:-0}"
2323
export USE_LTO="${USE_LTO:-0}"
2424

2525
export Z3_BUILD_TYPE="${Z3_BUILD_TYPE:-RelWithDebInfo}"

contrib/ci/scripts/install_deps_osx.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ if [ "X${Z3_CMAKE_GENERATOR}" = "XNinja" ]; then
3030
brew_install_or_upgrade ninja
3131
fi
3232

33-
if [ "X${USE_LIBGMP}" = "X1" ]; then
33+
if [ "X${Z3_USE_LIBGMP}" = "X1" ]; then
3434
brew_install_or_upgrade gmp
3535
fi
3636

contrib/ci/scripts/travis_ci_linux_entry_point.sh

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

33-
if [ -n "${USE_LIBGMP}" ]; then
34-
BUILD_OPTS+=("--build-arg" "USE_LIBGMP=${USE_LIBGMP}")
33+
if [ -n "${Z3_USE_LIBGMP}" ]; then
34+
BUILD_OPTS+=("--build-arg" "Z3_USE_LIBGMP=${Z3_USE_LIBGMP}")
3535
fi
3636

3737
if [ -n "${BUILD_DOCS}" ]; then

0 commit comments

Comments
 (0)