More sanitizer options

This commit is contained in:
Yuxuan Shui 2018-08-14 10:36:46 +01:00
parent 9b24550814
commit 5e1411c5c6
1 changed files with 4 additions and 0 deletions

View File

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