From cb99618eb6738dc87d34fd887a67f64fb1118b5b Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Mon, 1 Oct 2018 14:52:04 +0100 Subject: [PATCH] More sanitiziers Signed-off-by: Yuxuan Shui --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index c16a450..4f80428 100644 --- a/Makefile +++ b/Makefile @@ -113,9 +113,11 @@ else ifeq "$(BUILD_TYPE)" "Debug" endif ifeq "$(ENABLE_SAN)" "1" - CFG += -fsanitize=address,undefined -else ifeq "$(ENABLE_SAN)" "thread" - CFG += -fsanitize=thread + ifeq "$(CC)" "clang" + CFG += -fsanitize=address,undefined,integer,nullability + else + CFG += -fsanitize=address,undefined + endif else ifeq "$(ENABLE_SAN)" "memory" CFG += -fsanitize=memory endif