ardupilot/Tools/ardupilotwaf
Andrew Tridgell 6d2e060deb waf: add -fcheck-new to g++ build
this ensures the compiler doesn't assume that new always returns a
non-NULL value. Without this the compiler may remove the error path in
code like this:

```
MyObject *x = new MyObject;
if (x == nullptr) {
  ::printf("Alloc failed\n");
}
```

the reason it can do this is the new operator is marked as throwing an
exception on failure, which means the error path is unreachable. As we
don't have C++ exceptions in ArduPilot could (and do!) have code that
ends up losing protection against allocation failures
2023-01-09 15:04:22 +11:00
..
__init__.py waf: add waf support 2015-12-03 07:54:30 +11:00
ap_library.py waf: whitelist AP_LandingGear_config.h for vehicle-dependant macros 2022-12-14 18:30:23 +11:00
ap_persistent.py waf: persist implicit dependency information across clean 2016-08-24 10:46:23 -03:00
ardupilotwaf.py ardupilotwaf: common libraries add AP_TemperatureSensor 2022-10-18 10:05:31 +11:00
boards.py waf: add -fcheck-new to g++ build 2023-01-09 15:04:22 +11:00
build_summary.py Tools: ardupilotwaf: remove useless shebang on non exec files 2022-06-08 08:16:42 +09:00
chibios.py waf: use bld for dronecangen export headers for including 2022-11-16 18:05:59 +11:00
cmake.py Tools: ardupilotwaf: remove useless shebang on non exec files 2022-06-08 08:16:42 +09:00
cxx_checks.py Tools: check for feenableexcept on WAF 2019-08-06 09:37:30 +10:00
dronecangen.py waf: use bld for dronecangen export headers for including 2022-11-16 18:05:59 +11:00
embed.py Tools: fix exec permission 2022-06-08 08:16:42 +09:00
esp32.py Tools: ardupilotwaf: remove useless shebang on non exec files 2022-06-08 08:16:42 +09:00
gbenchmark.py Tools: ardupilotwaf: remove useless shebang on non exec files 2022-06-08 08:16:42 +09:00
git_submodule.py Tools: ardupilotwaf: remove useless shebang on non exec files 2022-06-08 08:16:42 +09:00
gtest.py Tools: ardupilotwaf: remove useless shebang on non exec files 2022-06-08 08:16:42 +09:00
mavgen.py Tools: ardupilotwaf: remove useless shebang on non exec files 2022-06-08 08:16:42 +09:00
static_linking.py Tools: ardupilotwaf: remove useless shebang on non exec files 2022-06-08 08:16:42 +09:00
toolchain.py waf: removed debug code 2021-04-23 05:50:23 +10:00
uavcangen.py waf: use bld for dronecangen export headers for including 2022-11-16 18:05:59 +11:00