Browse Source

allow debug builds for cortex-m toolchains

Waldemar Brodkorb 7 years ago
parent
commit
18978cf021
1 changed files with 2 additions and 0 deletions
  1. 2 0
      mk/vars.mk

+ 2 - 0
mk/vars.mk

@@ -246,8 +246,10 @@ TARGET_CXXFLAGS+=	-g3
 endif
 
 ifneq ($(ADK_DEBUG),)
+ifeq ($(ADK_TARGET_ARCH_ARM_WITH_THUMB),)
 TARGET_CFLAGS+=		-fno-omit-frame-pointer
 TARGET_CXXFLAGS+=	-fno-omit-frame-pointer
+endif
 TARGET_CFLAGS+=		-funwind-tables -fasynchronous-unwind-tables
 TARGET_CXXFLAGS+=	-funwind-tables -fasynchronous-unwind-tables
 else