mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-11 17:13:56 -03:00
waf: removed -fcheck-new and added link checks
check for use of new without std::nothrow
This commit is contained in:
parent
aa2f885e2f
commit
07b5ffcc58
@ -276,7 +276,6 @@ class Board:
|
|||||||
'-Werror=implicit-fallthrough',
|
'-Werror=implicit-fallthrough',
|
||||||
]
|
]
|
||||||
env.CXXFLAGS += [
|
env.CXXFLAGS += [
|
||||||
'-fcheck-new',
|
|
||||||
'-fsingle-precision-constant',
|
'-fsingle-precision-constant',
|
||||||
'-Wno-psabi',
|
'-Wno-psabi',
|
||||||
]
|
]
|
||||||
|
@ -162,7 +162,11 @@ def check_elf_symbols(task):
|
|||||||
# we use string find on these symbols, so this catches all types of throw
|
# we use string find on these symbols, so this catches all types of throw
|
||||||
# calls this should catch all uses of exceptions unless the compiler
|
# calls this should catch all uses of exceptions unless the compiler
|
||||||
# manages to inline them
|
# manages to inline them
|
||||||
blacklist = ['std::__throw']
|
blacklist = ['std::__throw',
|
||||||
|
'operator new[](unsigned int)',
|
||||||
|
'operator new[](unsigned long)',
|
||||||
|
'operator new(unsigned int)',
|
||||||
|
'operator new(unsigned long)']
|
||||||
|
|
||||||
nmout = subprocess.getoutput("%s -C %s" % (task.env.get_flat('NM'), elfpath))
|
nmout = subprocess.getoutput("%s -C %s" % (task.env.get_flat('NM'), elfpath))
|
||||||
for b in blacklist:
|
for b in blacklist:
|
||||||
|
Loading…
Reference in New Issue
Block a user