diff --git a/Tools/ardupilotwaf/boards.py b/Tools/ardupilotwaf/boards.py index 61b3cd010c763..951a31a71ba96 100644 --- a/Tools/ardupilotwaf/boards.py +++ b/Tools/ardupilotwaf/boards.py @@ -286,7 +286,7 @@ def configure_env(self, cfg, env): if cfg.env.DEBUG: env.CFLAGS += [ - '-g3', + '-g', '-O0', ] env.DEFINES.update( @@ -294,7 +294,7 @@ def configure_env(self, cfg, env): ) elif cfg.options.debug_symbols: env.CFLAGS += [ - '-g3', + '-g', ] if cfg.env.COVERAGE: env.CFLAGS += [