Use -O2 without debugging.

This commit is contained in:
Nicholas Marriott 2013-02-22 23:37:55 +00:00
parent 3a2e9d805a
commit 1ed37385c6

View File

@ -26,13 +26,15 @@ endif
if IS_GCC if IS_GCC
CFLAGS += -std=c99 CFLAGS += -std=c99
if IS_DEBUG if IS_DEBUG
CFLAGS += -g -ggdb -O0 CFLAGS += -O0 -g
CFLAGS += -Wno-long-long -Wall -W -Wnested-externs -Wformat=2 CFLAGS += -Wno-long-long -Wall -W -Wnested-externs -Wformat=2
CFLAGS += -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations CFLAGS += -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations
CFLAGS += -Wwrite-strings -Wshadow -Wpointer-arith -Wsign-compare CFLAGS += -Wwrite-strings -Wshadow -Wpointer-arith -Wsign-compare
CFLAGS += -Wundef -Wbad-function-cast -Winline -Wcast-align CFLAGS += -Wundef -Wbad-function-cast -Winline -Wcast-align
CFLAGS += -Wdeclaration-after-statement CFLAGS += -Wdeclaration-after-statement
CPPFLAGS += -DDEBUG CPPFLAGS += -DDEBUG
else
CFLAGS += -O2
endif endif
if IS_GCC4 if IS_GCC4
CPPFLAGS += -iquote. -I/usr/local/include CPPFLAGS += -iquote. -I/usr/local/include