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

main
theraven 15 years ago
parent 9b9c801805
commit fce7c776b6

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

Loading…
Cancel
Save