瀏覽代碼

Disabling code optimization flag for DEBUG build

Saumitra Vikram 8 年之前
父節點
當前提交
38e54ea42c
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      Makefile

+ 3 - 3
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