diff options
author | Roman Artiukhin <bahusdrive@gmail.com> | 2024-03-26 08:54:23 +0200 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2024-06-18 20:43:35 -0400 |
commit | e80cf93b67eba00df7dcd35f6ec972e66a5a5e84 (patch) | |
tree | 7d5cd07a77417b581a27d772a652f45df28758fe | |
parent | 5b61c79cf859bec08b75d6dd733610924d2f8d1e (diff) | |
download | rockbox-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.make | 2 |
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) | |||
76 | include $(RBCODECLIB_DIR)/codecs/cRSID/cRSID.make | 76 | include $(RBCODECLIB_DIR)/codecs/cRSID/cRSID.make |
77 | endif | 77 | endif |
78 | 78 | ||
79 | ifndef 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 |
150 | endif | 151 | endif |
152 | endif #ifndef DEBUG | ||
151 | 153 | ||
152 | ifndef APP_TYPE | 154 | ifndef APP_TYPE |
153 | CONFIGFILE := $(FIRMDIR)/export/config/$(MODELNAME).h | 155 | CONFIGFILE := $(FIRMDIR)/export/config/$(MODELNAME).h |