From dd979f25b5ac00c02e19156203bd70da4a348979 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 9 May 2024 14:22:28 +0200 Subject: Enable the sanitizer in debug builds --- make.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make.c b/make.c index 981ffed..26d3ad9 100644 --- a/make.c +++ b/make.c @@ -15,7 +15,7 @@ #define LIBNAME "libmlib" #define CFLAGS_ALL WARNINGS, "-pipe", "-std=c23", "-Iinclude" GLIB_EXTRAS -#define CFLAGS_DBG CFLAGS_ALL, "-g", "-ggdb3", "-Og" +#define CFLAGS_DBG CFLAGS_ALL, "-g", "-ggdb3", "-Og", "-fsanitize=address,undefined" #define CFLAGS_RLS CFLAGS_ALL, "-O3", "-flto", "-DNDEBUG" NOT_APPLE_EXTRAS #define WARNINGS \ -- cgit v1.2.3