use NDEBUG rather than DEBUG preprocessor definition, to be compatible with stdc

This commit is contained in:
2025-04-09 20:26:18 +02:00
parent 9e16484a22
commit dcb2085175

View File

@@ -17,10 +17,10 @@ LDFLAGS := $(shell pkg-config --libs sdl2) -lm
DEBUG ?= 0
ifeq ($(DEBUG),1)
CFLAGS += -DDEBUG -fsanitize=address,undefined -g -Og
CFLAGS += -fsanitize=address,undefined -g -Og
PROF := dbg
else
REL_FLAGS += -O2
CFLAGS += -DNDEBUG -O2
PROF := rel
endif