From 529a386a7a084347461639f4179232c0c7400e4a Mon Sep 17 00:00:00 2001 From: Philipp Klaus Krause Date: Thu, 16 Jun 2016 21:53:22 +0200 Subject: [PATCH] Add debug flags to debug build --- ports/stm8/sdcc.mak | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ports/stm8/sdcc.mak b/ports/stm8/sdcc.mak index e70b32f..3bd75b5 100644 --- a/ports/stm8/sdcc.mak +++ b/ports/stm8/sdcc.mak @@ -42,17 +42,17 @@ vpath %.elf .\$(BUILD_DIR) vpath %.hex .\$(BUILD_DIR) # Compiler/Assembler flags -CFLAGS= -mstm8 -c -D $(PART) --opt-code-size --max-allocs-per-node 3000 -DBG_CFLAGS= -mstm8 -c -D $(PART) --opt-code-size --max-allocs-per-node 3000 +CFLAGS= -mstm8 -c -D $(PART) --opt-code-size +DBG_CFLAGS= -mstm8 -c -D $(PART) --opt-code-size ASMFLAGS= -loff DBG_ASMFLAGS= -loff LINKFLAGS= -mstm8 -DBG_LINKFLAGS= -mstm8 +DBG_LINKFLAGS= --debug -mstm8 # Enable stack-checking (disable if not required) ifeq ($(STACK_CHECK),true) CFLAGS += -D ATOM_STACK_CHECKING -DBG_CFLAGS += -D ATOM_STACK_CHECKING +DBG_CFLAGS += --debug -D ATOM_STACK_CHECKING endif #################