Skip to content

Commit

Permalink
waf: Revert "waf: use debug option 3 which records defines as well"
Browse files Browse the repository at this point in the history
this change made use of gdb so slow it is completely unusable for
ArduPilot. Far too many macros, loading gdb takes forever
  • Loading branch information
tridge authored and peterbarker committed Jul 11, 2024
1 parent a551b4f commit 24a6e6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tools/ardupilotwaf/boards.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,15 +286,15 @@ def configure_env(self, cfg, env):

if cfg.env.DEBUG:
env.CFLAGS += [
'-g3',
'-g',
'-O0',
]
env.DEFINES.update(
HAL_DEBUG_BUILD = 1,
)
elif cfg.options.debug_symbols:
env.CFLAGS += [
'-g3',
'-g',
]
if cfg.env.COVERAGE:
env.CFLAGS += [
Expand Down

0 comments on commit 24a6e6b

Please sign in to comment.