aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2022-11-13 17:17:54 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2022-11-13 17:17:54 +0200
commit0ad55464bb7c0f9d49fc50b397bbf92fd5928258 (patch)
tree0a4ca54bc1566b0f8fb410d555a924e61244cfbd
parent1a0188fac0c0f265c4495b83592389b8b3645462 (diff)
downloadkmi-0ad55464bb7c0f9d49fc50b397bbf92fd5928258.tar.gz
kmi-0ad55464bb7c0f9d49fc50b397bbf92fd5928258.zip
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)
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
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)