mirror of https://github.com/ArduPilot/ardupilot
waf: added -g option to configure
this adds debug symbolds to the build without enabling other debug code. This is needed for analysing watchdog crash dumps
This commit is contained in:
parent
29556ade25
commit
775f12387c
|
@ -275,6 +275,10 @@ class Board:
|
|||
env.DEFINES.update(
|
||||
HAL_DEBUG_BUILD = 1,
|
||||
)
|
||||
elif cfg.options.g:
|
||||
env.CFLAGS += [
|
||||
'-g',
|
||||
]
|
||||
if cfg.env.COVERAGE:
|
||||
env.CFLAGS += [
|
||||
'-fprofile-arcs',
|
||||
|
|
Loading…
Reference in New Issue