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
0c5e999c44
commit
5b9ac1fdc1
|
@ -261,6 +261,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
|
@ -125,6 +125,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