added the asan and tsan targets to Makefile

This commit is contained in:
Heng Li 2019-12-23 17:33:10 -05:00
parent d90583b83c
commit 367aed4271
1 changed files with 10 additions and 0 deletions

View File

@ -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