summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Artiukhin <bahusdrive@gmail.com>2024-03-26 08:54:23 +0200
committerSolomon Peachy <pizza@shaftnet.org>2024-06-18 20:43:35 -0400
commite80cf93b67eba00df7dcd35f6ec972e66a5a5e84 (patch)
tree7d5cd07a77417b581a27d772a652f45df28758fe
parent5b61c79cf859bec08b75d6dd733610924d2f8d1e (diff)
downloadrockbox-e80cf93b67eba00df7dcd35f6ec972e66a5a5e84.tar.gz
rockbox-e80cf93b67eba00df7dcd35f6ec972e66a5a5e84.zip
Codecs: debugging: Disable compiler optimizations when DEBUG is defined
Change-Id: I6a65a2f650c4c7e0cde6165e8f46df1f3a5fd855
-rw-r--r--lib/rbcodec/codecs/codecs.make2
1 files changed, 2 insertions, 0 deletions
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)
76include $(RBCODECLIB_DIR)/codecs/cRSID/cRSID.make 76include $(RBCODECLIB_DIR)/codecs/cRSID/cRSID.make
77endif 77endif
78 78
79ifndef DEBUG
79# set CODECFLAGS per codec lib, since gcc takes the last -Ox and the last 80# set CODECFLAGS per codec lib, since gcc takes the last -Ox and the last
80# in a -ffoo -fno-foo pair, there is no need to filter them out 81# in a -ffoo -fno-foo pair, there is no need to filter them out
81$(CODECLIB) : CODECFLAGS += -O1 82$(CODECLIB) : CODECFLAGS += -O1
@@ -148,6 +149,7 @@ ifeq ($(MEMORYSIZE),2)
148 $(ASFLIB) : CODECFLAGS += -Os 149 $(ASFLIB) : CODECFLAGS += -Os
149 $(WMALIB) : CODECFLAGS += -Os 150 $(WMALIB) : CODECFLAGS += -Os
150endif 151endif
152endif #ifndef DEBUG
151 153
152ifndef APP_TYPE 154ifndef APP_TYPE
153 CONFIGFILE := $(FIRMDIR)/export/config/$(MODELNAME).h 155 CONFIGFILE := $(FIRMDIR)/export/config/$(MODELNAME).h