mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-03 12:14:10 -04:00
ardupilotwaf: properly configure double precision tests
Use new setup function. Unsure if this affects anything.
This commit is contained in:
parent
090f323678
commit
4d28b888a2
@ -493,14 +493,7 @@ def ap_find_tests(bld, use=[], DOUBLE_PRECISION_SOURCES=[]):
|
|||||||
)
|
)
|
||||||
filename = os.path.basename(f.abspath())
|
filename = os.path.basename(f.abspath())
|
||||||
if filename in DOUBLE_PRECISION_SOURCES:
|
if filename in DOUBLE_PRECISION_SOURCES:
|
||||||
t.env.CXXFLAGS = t.env.CXXFLAGS[:]
|
t.env.CXXFLAGS = set_double_precision_flags(t.env.CXXFLAGS)
|
||||||
single_precision_option='-fsingle-precision-constant'
|
|
||||||
if single_precision_option in t.env.CXXFLAGS:
|
|
||||||
t.env.CXXFLAGS.remove(single_precision_option)
|
|
||||||
single_precision_option='-cl-single-precision-constant'
|
|
||||||
if single_precision_option in t.env.CXXFLAGS:
|
|
||||||
t.env.CXXFLAGS.remove(single_precision_option)
|
|
||||||
t.env.CXXFLAGS.append("-DALLOW_DOUBLE_MATH_FUNCTIONS")
|
|
||||||
|
|
||||||
_versions = []
|
_versions = []
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user