use NDEBUG instead of DEBUG as preprocessor.

This commit is contained in:
Quinn
2025-04-09 21:22:18 +02:00
committed by Quinn
parent 5a47a1d02f
commit 0c74252a2f

View File

@@ -18,11 +18,11 @@ RUSTC := cargo rustc
RSFLAGS :=
ifeq ($(DEBUG),1)
CFLAGS += -DDEBUG -g -Og
CFLAGS += -g -Og
RSOUT := debug
PROF := dbg
else
CFLAGS += -O2 -Werror
CFLAGS += -DNDEBUG -O2 -Werror
RSOUT := release
RSFLAGS := --release
PROF := rel