From e80cf93b67eba00df7dcd35f6ec972e66a5a5e84 Mon Sep 17 00:00:00 2001 From: Roman Artiukhin Date: Tue, 26 Mar 2024 08:54:23 +0200 Subject: Codecs: debugging: Disable compiler optimizations when DEBUG is defined Change-Id: I6a65a2f650c4c7e0cde6165e8f46df1f3a5fd855 --- lib/rbcodec/codecs/codecs.make | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/rbcodec/codecs/codecs.make b/lib/rbcodec/codecs/codecs.make index 83dc784ee3..67bbcee5a5 100644 --- a/lib/rbcodec/codecs/codecs.make +++ b/lib/rbcodec/codecs/codecs.make @@ -76,6 +76,7 @@ ifneq ($(MEMORYSIZE),2) include $(RBCODECLIB_DIR)/codecs/cRSID/cRSID.make endif +ifndef DEBUG # set CODECFLAGS per codec lib, since gcc takes the last -Ox and the last # in a -ffoo -fno-foo pair, there is no need to filter them out $(CODECLIB) : CODECFLAGS += -O1 @@ -148,6 +149,7 @@ ifeq ($(MEMORYSIZE),2) $(ASFLIB) : CODECFLAGS += -Os $(WMALIB) : CODECFLAGS += -Os endif +endif #ifndef DEBUG ifndef APP_TYPE CONFIGFILE := $(FIRMDIR)/export/config/$(MODELNAME).h -- cgit v1.2.3