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
e1a982541b
commit
cf81c1448e
|
@ -261,6 +261,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