From 0ad55464bb7c0f9d49fc50b397bbf92fd5928258 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 13 Nov 2022 17:17:54 +0200 Subject: NDEBUG with release mode + Might be a good idea to add some command line variable as debugging release mode can be useful for performance profiling (until I start writing proper serial userspace drivers) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5e3dc50..3c29758 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ DO != echo -n > deps.mk # this could be done better DEBUGFLAGS != [ $(RELEASE) ] \ - && echo "-flto -O2 -g -DDEBUG" \ + && echo "-flto -O2 -g -DNDEBUG" \ || echo "-O0 -g -DDEBUG" CFLAGS = -ffreestanding -nostdlib -static -fno-pie -std=c17 -Wall -Wextra -Wvla -D$(ARCH) -- cgit v1.3