Skip to content

Commit 9a61ef0

Browse files
committed
Fix DEBUG target keyword for GCC_ARM
Fixes mbed-cli#402 bug. -g flag was changed to g3, thus this caused a regression in producing TARGET_DEBUG for GCC_ARM.
1 parent 507956d commit 9a61ef0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/toolchains/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ def get_labels(self):
472472

473473
# This is a policy decision and it should /really/ be in the config system
474474
# ATM it's here for backward compatibility
475-
if (("-g" in self.flags['common'] and
475+
if ((("-g" in self.flags['common'] or "-g3" in self.flags['common']) and
476476
"-O0") in self.flags['common'] or
477477
("-r" in self.flags['common'] and
478478
"-On" in self.flags['common'])):

0 commit comments

Comments
 (0)