diff --git a/ports/raspberrypi/Makefile b/ports/raspberrypi/Makefile index 926c8de9fd..ffab1fbcd0 100644 --- a/ports/raspberrypi/Makefile +++ b/ports/raspberrypi/Makefile @@ -117,7 +117,7 @@ CFLAGS += $(OPTIMIZATION_FLAGS) #Debugging/Optimization ifeq ($(DEBUG), 1) - CFLAGS += -ggdb3 -Og + CFLAGS += -ggdb3 -O3 # No LTO because we may place some functions in RAM instead of flash. else CFLAGS += -DNDEBUG