Skip to content

Commit

Permalink
ardupilotwaf: properly configure double precision tests
Browse files Browse the repository at this point in the history
Use new setup function. Unsure if this affects anything.
  • Loading branch information
tpwrules authored and tridge committed Dec 30, 2024
1 parent 084661d commit 05f024a
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions Tools/ardupilotwaf/ardupilotwaf.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,14 +494,7 @@ def ap_find_tests(bld, use=[], DOUBLE_PRECISION_SOURCES=[]):
)
filename = os.path.basename(f.abspath())
if filename in DOUBLE_PRECISION_SOURCES:
t.env.CXXFLAGS = 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")
t.env.CXXFLAGS = set_double_precision_flags(t.env.CXXFLAGS)

_versions = []

Expand Down

0 comments on commit 05f024a

Please sign in to comment.