mirror of https://github.com/ArduPilot/ardupilot
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:
parent
9d9cf2501a
commit
2e60f361fa
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue