Skip to content

Commit 81c4871

Browse files
committed
Set DEBUG CFLAG if set in make
1 parent 2de5eba commit 81c4871

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ports/esp32s2/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ CFLAGS += -DSTACK_CANARY_VALUE=0xa5a5a5a5
118118

119119
#Debugging/Optimization
120120
ifeq ($(DEBUG), 1)
121-
CFLAGS += -ggdb
121+
CFLAGS += -DDEBUG -ggdb
122122
OPTIMIZATION_FLAGS ?= -Og
123123
# You may want to enable these flags to make setting breakpoints easier.
124124
# CFLAGS += -fno-inline -fno-ipa-sra

0 commit comments

Comments
 (0)