From 38e54ea42c989357adb5062496d9159f4f1bf8ef Mon Sep 17 00:00:00 2001 From: Saumitra Vikram Date: Sat, 3 Sep 2016 08:44:14 +0530 Subject: [PATCH] Disabling code optimization flag for DEBUG build --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 93f1bd13..bd784590 100644 --- a/Makefile +++ b/Makefile @@ -60,14 +60,14 @@ BUILD_DIRS += $(BUILD_DIR)/test endif # only set main compile options if none were chosen -CFLAGS += -Wall -Wextra -Wshadow -Wformat-security -Winit-self -Wmissing-prototypes -O2 -D$(TARGET_OS) -Iinclude $(COPT) -DUSE_STACK_SIZE=102400 +CFLAGS += -Wall -Wextra -Wshadow -Wformat-security -Winit-self -Wmissing-prototypes -D$(TARGET_OS) -Iinclude $(COPT) -DUSE_STACK_SIZE=102400 LIBS = -lpthread -lm ifdef WITH_DEBUG - CFLAGS += -g -DDEBUG_ENABLED + CFLAGS += -g -DDEBUG else - CFLAGS += -DNDEBUG + CFLAGS += -O2 -DNDEBUG endif ifdef WITH_CPP