mirror of
https://github.com/Z3Prover/z3
synced 2025-06-06 22:23:22 +00:00
Fix support for gmp
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
5a9040a247
commit
f70de8dd47
1 changed files with 3 additions and 2 deletions
|
@ -1320,11 +1320,13 @@ def mk_config():
|
||||||
check_ar()
|
check_ar()
|
||||||
CXX = find_cxx_compiler()
|
CXX = find_cxx_compiler()
|
||||||
CC = find_c_compiler()
|
CC = find_c_compiler()
|
||||||
|
SLIBEXTRAFLAGS = ''
|
||||||
if GMP:
|
if GMP:
|
||||||
test_gmp(CXX)
|
test_gmp(CXX)
|
||||||
ARITH = "gmp"
|
ARITH = "gmp"
|
||||||
CPPFLAGS = '%s -D_MP_GMP' % CPPFLAGS
|
CPPFLAGS = '%s -D_MP_GMP' % CPPFLAGS
|
||||||
LDFLAGS = '%s -lgmp' % LDFLAGS
|
LDFLAGS = '%s -lgmp' % LDFLAGS
|
||||||
|
SLIBEXTRAFLAGS = '%s -lgmp' % SLIBEXTRAFLAGS
|
||||||
else:
|
else:
|
||||||
CPPFLAGS = '%s -D_MP_INTERNAL' % CPPFLAGS
|
CPPFLAGS = '%s -D_MP_INTERNAL' % CPPFLAGS
|
||||||
CXXFLAGS = '%s -c' % CXXFLAGS
|
CXXFLAGS = '%s -c' % CXXFLAGS
|
||||||
|
@ -1332,10 +1334,9 @@ def mk_config():
|
||||||
if HAS_OMP:
|
if HAS_OMP:
|
||||||
CXXFLAGS = '%s -fopenmp -mfpmath=sse' % CXXFLAGS
|
CXXFLAGS = '%s -fopenmp -mfpmath=sse' % CXXFLAGS
|
||||||
LDFLAGS = '%s -fopenmp' % LDFLAGS
|
LDFLAGS = '%s -fopenmp' % LDFLAGS
|
||||||
SLIBEXTRAFLAGS = '-fopenmp'
|
SLIBEXTRAFLAGS = '%s -fopenmp' % SLIBEXTRAFLAGS
|
||||||
else:
|
else:
|
||||||
CXXFLAGS = '%s -D_NO_OMP_' % CXXFLAGS
|
CXXFLAGS = '%s -D_NO_OMP_' % CXXFLAGS
|
||||||
SLIBEXTRAFLAGS = ''
|
|
||||||
if DEBUG_MODE:
|
if DEBUG_MODE:
|
||||||
CXXFLAGS = '%s -g -Wall' % CXXFLAGS
|
CXXFLAGS = '%s -g -Wall' % CXXFLAGS
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue