Skip to content

Commit 7579057

Browse files
committed
nrf: Use -O1 for debug builds
While O0 is great for debugging, the produced binary doesn't fit on the feather52 anymore.
1 parent 0388a57 commit 7579057

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ports/nrf/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ LDFLAGS += -Wl,--gc-sections
8989
#Debugging/Optimization
9090
ifeq ($(DEBUG), 1)
9191
#ASMFLAGS += -g -gtabs+
92-
CFLAGS += -O0 -ggdb
93-
LDFLAGS += -O0
92+
CFLAGS += -O1 -ggdb
93+
LDFLAGS += -O1
9494
else
9595
CFLAGS += -Os -DNDEBUG
9696
LDFLAGS += -Os

0 commit comments

Comments
 (0)