mirror of
https://github.com/Z3Prover/z3
synced 2025-07-19 10:52:02 +00:00
added support for clang++ on Linux
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
ed6e688b94
commit
504ba8236d
2 changed files with 11 additions and 2 deletions
2
README
2
README
|
@ -35,7 +35,7 @@ To uninstall Z3, use
|
||||||
|
|
||||||
sudo make uninstall
|
sudo make uninstall
|
||||||
|
|
||||||
3) Building Z3 using clang++ on OSX
|
3) Building Z3 using clang++ on Linux/OSX
|
||||||
Remark: clang does not support OpenMP yet.
|
Remark: clang does not support OpenMP yet.
|
||||||
|
|
||||||
autoconf
|
autoconf
|
||||||
|
|
11
configure.ac
11
configure.ac
|
@ -129,6 +129,10 @@ AS_IF([test "$host_os" = "Darwin"], [
|
||||||
COMP_VERSIONS=
|
COMP_VERSIONS=
|
||||||
STATIC_FLAGS=-static
|
STATIC_FLAGS=-static
|
||||||
CXXFLAGS+=" -fno-strict-aliasing"
|
CXXFLAGS+=" -fno-strict-aliasing"
|
||||||
|
if test "$CXX" = "clang++"; then
|
||||||
|
CXXFLAGS+=" -Wno-unknown-pragmas -Wno-overloaded-virtual"
|
||||||
|
SLIBEXTRAFLAGS+=" -lrt"
|
||||||
|
fi
|
||||||
], [test "${host_os:0:6}" = "CYGWIN"], [
|
], [test "${host_os:0:6}" = "CYGWIN"], [
|
||||||
PLATFORM=win
|
PLATFORM=win
|
||||||
SO_EXT=.dll
|
SO_EXT=.dll
|
||||||
|
@ -185,6 +189,11 @@ AC_OUTPUT(scripts/config-debug.mk scripts/config-release.mk)
|
||||||
#
|
#
|
||||||
###################
|
###################
|
||||||
|
|
||||||
|
MKMAKE_OPT=
|
||||||
|
if test "$CXX" = "clang++"; then
|
||||||
|
MKMAKE_OPT="--noomp"
|
||||||
|
fi
|
||||||
|
|
||||||
# Python is available, give user the option to generate the make files wherever they want
|
# Python is available, give user the option to generate the make files wherever they want
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
Z3 was configured with success.
|
Z3 was configured with success.
|
||||||
|
@ -195,7 +204,7 @@ Prefix: $prefix
|
||||||
64-bit: $IS_X64
|
64-bit: $IS_X64
|
||||||
|
|
||||||
To build and install Z3, execute:
|
To build and install Z3, execute:
|
||||||
python scripts/mk_make.py
|
python scripts/mk_make.py $MKMAKE_OPT
|
||||||
cd build
|
cd build
|
||||||
make
|
make
|
||||||
sudo make install
|
sudo make install
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue