Tools: ardupilotwaf: remove '-Werror=suggest-override' from benchmark to prevent failure

this is due to the fact that gbenchmark header should be compatible with C++03 and then don't accept C++11 feature like override ...
This commit is contained in:
Pierre Kancir 2020-09-03 09:46:18 +02:00 committed by Peter Barker
parent 9d9cf2501a
commit 2e60f361fa
1 changed files with 8 additions and 0 deletions

View File

@ -383,6 +383,14 @@ def ap_find_benchmarks(bld, use=[]):
return
includes = [bld.srcnode.abspath() + '/benchmarks/']
to_remove = '-Werror=suggest-override'
if to_remove in bld.env.CXXFLAGS:
need_remove = True
else:
need_remove = False
if need_remove:
while to_remove in bld.env.CXXFLAGS:
bld.env.CXXFLAGS.remove(to_remove)
for f in bld.path.ant_glob(incl='*.cpp'):
ap_program(