Tweak build to only enable optimisation in non-debug builds.

This commit is contained in:
theraven 2011-07-04 14:44:04 +00:00
parent 9b9c801805
commit fce7c776b6

View File

@ -109,7 +109,6 @@ endif
# using is rubbish - they complain.
#CPPFLAGS += -DNO_SELECTOR_MISMATCH_WARNINGS
${LIBOBJC}_CFLAGS += -O3
# Deprecated functions are only deprecated for external use, not for us because
# we are special, precious, little flowers.
@ -125,7 +124,10 @@ ${LIBOBJC}_CFLAGS += -Wno-unused-function
# debugger actually works...
ifeq ($(debug), yes)
${LIBOBJC}_CFLAGS += -fno-inline
${LIBOBJC}_OBJCFLAGS += -fno-inline
${LIBOBJC}_CPPFLAGS += -DGC_DEBUG
else
${LIBOBJC}_CFLAGS += -O3
endif
${LIBOBJC}_OBJCFLAGS += $(${LIBOBJC}_CFLAGS) $(${LIBOBJC}_CFLAGS)