From 7579057ee2a060228264a9edf89a550de66d0997 Mon Sep 17 00:00:00 2001 From: arturo182 Date: Mon, 12 Feb 2018 22:50:07 +0100 Subject: [PATCH] nrf: Use -O1 for debug builds While O0 is great for debugging, the produced binary doesn't fit on the feather52 anymore. --- ports/nrf/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ports/nrf/Makefile b/ports/nrf/Makefile index 6385092593..5dec98ab7c 100644 --- a/ports/nrf/Makefile +++ b/ports/nrf/Makefile @@ -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