Skip to content

Commit

Permalink
Remove CMAKE_BUILD_TYPE values that do not work when building Z3
Browse files Browse the repository at this point in the history
The only values that work when Z3 is built, e.g. when
ENABLE_TEST_TOOLS=ON is configured, are these, checked for by Z3
cmake:

  Debug;Release;RelWithDebInfo;MinSizeRel

Signed-off-by: Andy Fingerhut <[email protected]>
  • Loading branch information
jafingerhut committed Nov 2, 2024
1 parent b35c89b commit 5e150ba
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,9 @@ sudo dpkg -i /path/to/package.deb
```
The cmake command takes the following optional arguments to
further customize the build (see file `CMakeLists.txt` for the full list):
- `-DCMAKE_BUILD_TYPE=RELEASE|DEBUG` -- set CMAKE_BUILD_TYPE to
RELEASE or DEBUG to build with optimizations or with debug
symbols to run in gdb. Default is RELEASE.
- `-DCMAKE_BUILD_TYPE=Release|Debug` -- set CMAKE_BUILD_TYPE to
Release or Debug to build with optimizations or with debug
symbols to run in gdb. Default is Release.
- `-DCMAKE_INSTALL_PREFIX=<path>` -- set the directory where
`make install` installs the compiler. Defaults to /usr/local.
- `-DENABLE_BMV2=ON|OFF`. Enable [the bmv2 backend](backends/bmv2/README.md). Default ON.
Expand Down
2 changes: 1 addition & 1 deletion bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ while [ $# -gt 0 ]; do
--force)
FORCE=true
;;
debug|release|relwithdebinfo|Debug|Release|RelWithDebInfo|DEBUG|RELEASE|RELWITHDEBINFO)
Debug|Release|RelWithDebInfo)
BuildType="$1"
;;
build*)
Expand Down
2 changes: 1 addition & 1 deletion tools/ci-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ CMAKE_FLAGS+="-DSTATIC_BUILD_WITH_DYNAMIC_GLIBC=${STATIC_BUILD_WITH_DYNAMIC_GLIB
CMAKE_FLAGS+="-DSTATIC_BUILD_WITH_DYNAMIC_STDLIB=${STATIC_BUILD_WITH_DYNAMIC_STDLIB} "
# Enable GTest.
CMAKE_FLAGS+="-DENABLE_GTESTS=${ENABLE_GTESTS} "
# RELEASE should be default, but we want to make sure.
# Release should be default, but we want to make sure.
CMAKE_FLAGS+="-DCMAKE_BUILD_TYPE=Release "
# Treat warnings as errors.
CMAKE_FLAGS+="-DENABLE_WERROR=${ENABLE_WERROR} "
Expand Down
2 changes: 1 addition & 1 deletion tools/debian-build/packaging.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ CONFOPT=""
export CXXFLAGS="${CXXFLAGS} -O3"
# Enable unity compilation.
CONFOPT+="-DCMAKE_UNITY_BUILD=ON "
# RELEASE should be default, but we want to make sure.
# Release should be default, but we want to make sure.
CONFOPT+="-DCMAKE_BUILD_TYPE=Release "
# The binaries we produce should not depend on system libraries.
CONFOPT+="-DSTATIC_BUILD_WITH_DYNAMIC_GLIBC=ON "
Expand Down

0 comments on commit 5e150ba

Please sign in to comment.