add sanitizers to flags

This commit is contained in:
Quinn
2025-04-18 17:54:10 +02:00
committed by Quinn
parent 7354c049ec
commit 4b611c7918

View File

@@ -14,7 +14,8 @@ CFLAGS := -Wall -Wextra -Wpedantic -Wno-pointer-arith -Ilib
LDFLAGS :=
ifneq ($(DEBUG),0)
CFLAGS += -g -Og
CFLAGS += -g -Og -fsanitize=address,undefined
LDFLAGS += -fsanitize=address,undefined
PROF := dbg
else
CFLAGS += -DNDEBUG -O2 -Werror