From fce7c776b62b414c1e03fac28eb0e566a24e4cbf Mon Sep 17 00:00:00 2001 From: theraven Date: Mon, 4 Jul 2011 14:44:04 +0000 Subject: [PATCH] Tweak build to only enable optimisation in non-debug builds. --- GNUmakefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/GNUmakefile b/GNUmakefile index 8ea6c09..cf7aa3f 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -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)