From 5e1411c5c6d22a270e65be1f7ad6966f2e0d2d32 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Tue, 14 Aug 2018 10:36:46 +0100 Subject: [PATCH] More sanitizer options --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 7d792e2..7da6675 100644 --- a/Makefile +++ b/Makefile @@ -120,6 +120,10 @@ endif ifeq "$(ENABLE_SAN)" "1" CFLAGS += -fsanitize=address,undefined +else ifeq "$(ENABLE_SAN)" "thread" + CFLAGS += -fsanitize=thread +else ifeq "$(ENABLE_SAN)" "memory" + CFLAGS += -fsanitize=memory endif LIBS += $(shell pkg-config --libs $(PACKAGES))