Skip to content

Commit

Permalink
Define NDEBUG in release/small mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
monaka committed Jul 2, 2012
1 parent ac5838a commit 2b10ff9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Expand Up @@ -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)
Expand Down

0 comments on commit 2b10ff9

Please sign in to comment.