nrf: Use -O1 for debug builds

While O0 is great for debugging, the produced binary doesn't fit on the
feather52 anymore.
This commit is contained in:
arturo182 2018-02-12 22:50:07 +01:00
parent 0388a57f77
commit 7579057ee2
1 changed files with 2 additions and 2 deletions

View File

@ -89,8 +89,8 @@ LDFLAGS += -Wl,--gc-sections
#Debugging/Optimization
ifeq ($(DEBUG), 1)
#ASMFLAGS += -g -gtabs+
CFLAGS += -O0 -ggdb
LDFLAGS += -O0
CFLAGS += -O1 -ggdb
LDFLAGS += -O1
else
CFLAGS += -Os -DNDEBUG
LDFLAGS += -Os