mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 20:18:18 +00:00
add option to disable FPMATH
This commit is contained in:
parent
f66b4f0880
commit
b38b6daba3
|
@ -114,6 +114,7 @@ ALWAYS_DYNAMIC_BASE=False
|
||||||
|
|
||||||
FPMATH="Default"
|
FPMATH="Default"
|
||||||
FPMATH_FLAGS="-mfpmath=sse -msse -msse2"
|
FPMATH_FLAGS="-mfpmath=sse -msse -msse2"
|
||||||
|
FPMATH_ENABLED=getenv("FPMATH_ENABLED", "True")
|
||||||
|
|
||||||
|
|
||||||
def check_output(cmd):
|
def check_output(cmd):
|
||||||
|
@ -278,6 +279,9 @@ def test_gmp(cc):
|
||||||
|
|
||||||
def test_fpmath(cc):
|
def test_fpmath(cc):
|
||||||
global FPMATH_FLAGS
|
global FPMATH_FLAGS
|
||||||
|
if FPMATH_ENABLED == "False":
|
||||||
|
FPMATH_FLAGS=""
|
||||||
|
return "Disabled"
|
||||||
if is_verbose():
|
if is_verbose():
|
||||||
print("Testing floating point support...")
|
print("Testing floating point support...")
|
||||||
t = TempFile('tstsse.cpp')
|
t = TempFile('tstsse.cpp')
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
variables:
|
variables:
|
||||||
ReleaseVersion: '4.8.15'
|
ReleaseVersion: '4.8.15'
|
||||||
MacFlags: 'CXXFLAGS="-arch arm64" LINK_EXTRA_FLAGS="-arch arm64" SLINK_EXTRA_FLAGS="-arch arm64" CPPFLAGS="-arch arm64"'
|
MacFlags: 'CXXFLAGS="-arch arm64" LINK_EXTRA_FLAGS="-arch arm64" SLINK_EXTRA_FLAGS="-arch arm64" FPMATH_ENABLED=False'
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- stage: Build
|
- stage: Build
|
||||||
|
|
Loading…
Reference in a new issue