From 0c74252a2f6bf285b23bf921a2aa20283f8b5f83 Mon Sep 17 00:00:00 2001 From: Quinn Date: Wed, 9 Apr 2025 21:22:18 +0200 Subject: [PATCH] use NDEBUG instead of DEBUG as preprocessor. --- makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/makefile b/makefile index 5d7ed69..ac9e315 100644 --- a/makefile +++ b/makefile @@ -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