3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-27 19:05:51 +00:00

Added support for clang++ on OSX

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2012-11-12 04:56:48 +00:00
parent 99b7f7509d
commit e0fcbc101c
10 changed files with 68 additions and 20 deletions

View file

@ -116,7 +116,7 @@ AS_IF([test "$host_os" = "Darwin"], [
PLATFORM=osx
SO_EXT=.dylib
LDFLAGS=
SLIBFLAGS="-dynamiclib -fopenmp"
SLIBFLAGS="-dynamiclib"
SLIBEXTRAFLAGS=""
COMP_VERSIONS="-compatibility_version \$(Z3_VERSION) -current_version \$(Z3_VERSION)"
STATIC_FLAGS=
@ -124,7 +124,7 @@ AS_IF([test "$host_os" = "Darwin"], [
PLATFORM=linux
SO_EXT=.so
LDFLAGS=-lrt
SLIBFLAGS="-shared -fopenmp"
SLIBFLAGS="-shared"
SLIBEXTRAFLAGS=
COMP_VERSIONS=
STATIC_FLAGS=-static
@ -133,7 +133,7 @@ AS_IF([test "$host_os" = "Darwin"], [
PLATFORM=win
SO_EXT=.dll
LDFLAGS=
SLIBFLAGS="-shared -fopenmp"
SLIBFLAGS="-shared"
SLIBEXTRAFLAGS=
COMP_VERSIONS=
CXXFLAGS+=" -D_CYGWIN -fno-strict-aliasing"
@ -141,6 +141,12 @@ AS_IF([test "$host_os" = "Darwin"], [
[
AC_MSG_ERROR([Unknown host platform: $host_os])
])
# Only add -mfpmath=sse if g++
if test "$CXX" = "g++"; then
CXXFLAGS+=" -mfpmath=sse"
fi
AC_SUBST(SLIBFLAGS)
AC_SUBST(LDFLAGS)
AC_SUBST(SLIBEXTRAFLAGS)