From 9a61ef0368940336d5bab9fb3b12c5a7c00f5621 Mon Sep 17 00:00:00 2001 From: Martin Kojtal Date: Tue, 6 Dec 2016 11:28:17 +0000 Subject: [PATCH] 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. --- tools/toolchains/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/toolchains/__init__.py b/tools/toolchains/__init__.py index ce0ee7cd3b..6a15fc6cee 100644 --- a/tools/toolchains/__init__.py +++ b/tools/toolchains/__init__.py @@ -472,7 +472,7 @@ class mbedToolchain: # This is a policy decision and it should /really/ be in the config system # ATM it's here for backward compatibility - if (("-g" in self.flags['common'] and + if ((("-g" in self.flags['common'] or "-g3" in self.flags['common']) and "-O0") in self.flags['common'] or ("-r" in self.flags['common'] and "-On" in self.flags['common'])):