added the asan and tsan targets to Makefile
This commit is contained in:
parent
d90583b83c
commit
367aed4271
10
Makefile
10
Makefile
|
|
@ -22,6 +22,16 @@ else #if aarch64 is defined
|
||||||
endif
|
endif
|
||||||
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
|
.PHONY:all extra clean depend
|
||||||
.SUFFIXES:.c .o
|
.SUFFIXES:.c .o
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue