Browse Source

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 ...
c415-sdk
Pierre Kancir 5 years ago committed by Peter Barker
parent
commit
2e60f361fa
  1. 8
      Tools/ardupilotwaf/ardupilotwaf.py

8
Tools/ardupilotwaf/ardupilotwaf.py

@ -383,6 +383,14 @@ def ap_find_benchmarks(bld, use=[]): @@ -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…
Cancel
Save