aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-05-09 14:22:28 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-05-09 14:22:28 +0200
commitdd979f25b5ac00c02e19156203bd70da4a348979 (patch)
tree6e90e9fd1ef8f5c55886e9cb1ffc99adc7c41a74
parent950720b06356e62fe1fe9e574bfada13b44969d1 (diff)
Enable the sanitizer in debug builds
-rw-r--r--make.c2
1 files changed, 1 insertions, 1 deletions
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 \