Skip to content
Browse files

Define NDEBUG in release/small mode.

  • Loading branch information...
1 parent ac5838a commit 2b10ff9edb5f7e561798e4c9dc66bf9f1bfe4493 @monaka committed Jul 3, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 Makefile
View
4 Makefile
@@ -15,9 +15,9 @@ endif
ifeq ($(COMPILE_MODE),debug)
CFLAGS = -g -O3
else ifeq ($(COMPILE_MODE),release)
- CFLAGS = -O3
+ CFLAGS = -O3 -DNDEBUG
else ifeq ($(COMPILE_MODE),small)
- CFLAGS = -Os
+ CFLAGS = -Os -DNDEBUG
endif
ALL_CFLAGS = -Wall -Werror-implicit-function-declaration $(CFLAGS)

0 comments on commit 2b10ff9

Please sign in to comment.
Something went wrong with that request. Please try again.