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 := RSFLAGS :=
ifeq ($(DEBUG),1) ifeq ($(DEBUG),1)
CFLAGS += -DDEBUG -g -Og CFLAGS += -g -Og
RSOUT := debug RSOUT := debug
PROF := dbg PROF := dbg
else else
CFLAGS += -O2 -Werror CFLAGS += -DNDEBUG -O2 -Werror
RSOUT := release RSOUT := release
RSFLAGS := --release RSFLAGS := --release
PROF := rel PROF := rel