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
07d1329606
commit
b6d6c07008
|
@ -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