mirror of
https://github.com/thepigeongenerator/sdl_template.git
synced 2025-12-17 05:55:47 +01:00
use NDEBUG rather than DEBUG preprocessor definition, to be compatible with stdc
This commit is contained in:
4
makefile
4
makefile
@@ -17,10 +17,10 @@ LDFLAGS := $(shell pkg-config --libs sdl2) -lm
|
|||||||
DEBUG ?= 0
|
DEBUG ?= 0
|
||||||
|
|
||||||
ifeq ($(DEBUG),1)
|
ifeq ($(DEBUG),1)
|
||||||
CFLAGS += -DDEBUG -fsanitize=address,undefined -g -Og
|
CFLAGS += -fsanitize=address,undefined -g -Og
|
||||||
PROF := dbg
|
PROF := dbg
|
||||||
else
|
else
|
||||||
REL_FLAGS += -O2
|
CFLAGS += -DNDEBUG -O2
|
||||||
PROF := rel
|
PROF := rel
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user