From 3e4d16a5be6dfd00a264d7466889a88e74e2d481 Mon Sep 17 00:00:00 2001 From: Quinn Date: Mon, 23 Jun 2025 13:19:06 +0200 Subject: [PATCH] explicitly undefine NDEBUG in CFLAGS. --- makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/makefile b/makefile index 085ebc7..b906404 100644 --- a/makefile +++ b/makefile @@ -24,21 +24,21 @@ ISWIN := $(if $(filter linux darwin freebsd netbsd openbsd,$(KERNEL)),0,1) # profiles ifeq ($(DEBUG),1) # check whether we're debugging -CFLAGS += -Og -g +CFLAGS += -UNDEBUG -Og -g PROF := dbg ifeq ($(ISWIN),0) CFLAGS += -fsanitize=address,undefined LDFLAGS += -fsanitize=address,undefined endif else ifeq ($(DEBUG),test) # check whether we're perhaps testing -CFLAGS += -O2 -g +CFLAGS += -UNDEBUG -O2 -g PROF := test ifeq ($(ISWIN),0) CFLAGS += -fsanitize=address LDFLAGS += -fsanitize=address endif else # otherwise, assume release -CFLAGS += -O2 -DNDEBUG +CFLAGS += -DNDEBUG -O2 PROF := rel endif