From 367aed427104eb6eb2d4afaed43608a9772b6f09 Mon Sep 17 00:00:00 2001 From: Heng Li Date: Mon, 23 Dec 2019 17:33:10 -0500 Subject: [PATCH] added the asan and tsan targets to Makefile --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Makefile b/Makefile index ed341f6..18622f5 100644 --- a/Makefile +++ b/Makefile @@ -22,6 +22,16 @@ else #if aarch64 is defined endif endif +ifneq ($(asan),) + CFLAGS+=-fsanitize=address + LIBS+=-fsanitize=address +endif + +ifneq ($(tsan),) + CFLAGS+=-fsanitize=thread + LIBS+=-fsanitize=thread +endif + .PHONY:all extra clean depend .SUFFIXES:.c .o