3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-14 21:08:46 +00:00

added support for clang++ on Linux

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2012-11-11 21:42:36 -08:00
parent ed6e688b94
commit 504ba8236d
2 changed files with 11 additions and 2 deletions

2
README
View file

@ -35,7 +35,7 @@ To uninstall Z3, use
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.
autoconf

View file

@ -129,6 +129,10 @@ AS_IF([test "$host_os" = "Darwin"], [
COMP_VERSIONS=
STATIC_FLAGS=-static
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"], [
PLATFORM=win
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
cat <<EOF
Z3 was configured with success.
@ -195,7 +204,7 @@ Prefix: $prefix
64-bit: $IS_X64
To build and install Z3, execute:
python scripts/mk_make.py
python scripts/mk_make.py $MKMAKE_OPT
cd build
make
sudo make install