Codecs: debugging: Disable compiler optimizations when DEBUG is defined

Change-Id: I6a65a2f650c4c7e0cde6165e8f46df1f3a5fd855
This commit is contained in:
Roman Artiukhin 2024-03-26 08:54:23 +02:00 committed by Solomon Peachy
parent 5b61c79cf8
commit e80cf93b67

View file

@ -76,6 +76,7 @@ ifneq ($(MEMORYSIZE),2)
include $(RBCODECLIB_DIR)/codecs/cRSID/cRSID.make include $(RBCODECLIB_DIR)/codecs/cRSID/cRSID.make
endif endif
ifndef DEBUG
# set CODECFLAGS per codec lib, since gcc takes the last -Ox and the last # 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 # in a -ffoo -fno-foo pair, there is no need to filter them out
$(CODECLIB) : CODECFLAGS += -O1 $(CODECLIB) : CODECFLAGS += -O1
@ -148,6 +149,7 @@ ifeq ($(MEMORYSIZE),2)
$(ASFLIB) : CODECFLAGS += -Os $(ASFLIB) : CODECFLAGS += -Os
$(WMALIB) : CODECFLAGS += -Os $(WMALIB) : CODECFLAGS += -Os
endif endif
endif #ifndef DEBUG
ifndef APP_TYPE ifndef APP_TYPE
CONFIGFILE := $(FIRMDIR)/export/config/$(MODELNAME).h CONFIGFILE := $(FIRMDIR)/export/config/$(MODELNAME).h