Tools: ardupilotwaf: add enable-math-check-indexes configure option

This commit is contained in:
Peter Barker 2018-10-01 09:04:10 +10:00 committed by Peter Barker
parent 154d771e6c
commit d4c3caf592
1 changed files with 3 additions and 0 deletions

View File

@ -119,6 +119,9 @@ class Board:
'-O0',
]
if cfg.options.enable_math_check_indexes:
env.CXXFLAGS += ['-DMATH_CHECK_INDEXES']
env.CXXFLAGS += [
'-std=gnu++11',