mirror of
https://github.com/Z3Prover/z3
synced 2025-04-07 09:55:19 +00:00
incorporate #1854
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
096a6c088d
commit
be8a9c611e
|
@ -383,6 +383,10 @@ if (("${TARGET_ARCHITECTURE}" STREQUAL "x86_64") OR ("${TARGET_ARCHITECTURE}" ST
|
||||||
if (("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU") OR ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang"))
|
if (("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU") OR ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang"))
|
||||||
set(SSE_FLAGS "-mfpmath=sse" "-msse" "-msse2")
|
set(SSE_FLAGS "-mfpmath=sse" "-msse" "-msse2")
|
||||||
# FIXME: Remove "x.." when CMP0054 is set to NEW
|
# FIXME: Remove "x.." when CMP0054 is set to NEW
|
||||||
|
elseif ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Intel")
|
||||||
|
set(SSE_FLAGS "-mfpmath=sse" "-msse" "-msse2")
|
||||||
|
# Intel's compiler requires linking with libiomp5
|
||||||
|
list(APPEND Z3_DEPENDENT_LIBS "iomp5")
|
||||||
elseif ("x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xMSVC")
|
elseif ("x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xMSVC")
|
||||||
set(SSE_FLAGS "/arch:SSE2")
|
set(SSE_FLAGS "/arch:SSE2")
|
||||||
else()
|
else()
|
||||||
|
|
|
@ -27,7 +27,9 @@ Revision History:
|
||||||
# define __has_builtin(x) 0
|
# define __has_builtin(x) 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#ifdef __INTEL_COMPILER
|
||||||
|
# define ALLOC_ATTR __attribute__((malloc))
|
||||||
|
#elif __GNUC__
|
||||||
# if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 || __has_builtin(returns_nonnull)
|
# if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 || __has_builtin(returns_nonnull)
|
||||||
# define GCC_RET_NON_NULL __attribute__((returns_nonnull))
|
# define GCC_RET_NON_NULL __attribute__((returns_nonnull))
|
||||||
# else
|
# else
|
||||||
|
|
Loading…
Reference in a new issue