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(
|
env.DEFINES.update(
|
||||||
HAL_DEBUG_BUILD = 1,
|
HAL_DEBUG_BUILD = 1,
|
||||||
)
|
)
|
||||||
|
elif cfg.options.g:
|
||||||
|
env.CFLAGS += [
|
||||||
|
'-g',
|
||||||
|
]
|
||||||
if cfg.env.COVERAGE:
|
if cfg.env.COVERAGE:
|
||||||
env.CFLAGS += [
|
env.CFLAGS += [
|
||||||
'-fprofile-arcs',
|
'-fprofile-arcs',
|
||||||
|
|
5
wscript
5
wscript
|
@ -126,6 +126,11 @@ def options(opt):
|
||||||
default=False,
|
default=False,
|
||||||
help='Configure as debug variant.')
|
help='Configure as debug variant.')
|
||||||
|
|
||||||
|
g.add_option('-g',
|
||||||
|
action='store_true',
|
||||||
|
default=False,
|
||||||
|
help='Add debug symbolds to build.')
|
||||||
|
|
||||||
g.add_option('--disable-watchdog',
|
g.add_option('--disable-watchdog',
|
||||||
action='store_true',
|
action='store_true',
|
||||||
default=False,
|
default=False,
|
||||||
|
|
Loading…
Reference in New Issue