More sanitiziers
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
8be2cbf1a5
commit
cb99618eb6
8
Makefile
8
Makefile
|
@ -113,9 +113,11 @@ else ifeq "$(BUILD_TYPE)" "Debug"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq "$(ENABLE_SAN)" "1"
|
ifeq "$(ENABLE_SAN)" "1"
|
||||||
CFG += -fsanitize=address,undefined
|
ifeq "$(CC)" "clang"
|
||||||
else ifeq "$(ENABLE_SAN)" "thread"
|
CFG += -fsanitize=address,undefined,integer,nullability
|
||||||
CFG += -fsanitize=thread
|
else
|
||||||
|
CFG += -fsanitize=address,undefined
|
||||||
|
endif
|
||||||
else ifeq "$(ENABLE_SAN)" "memory"
|
else ifeq "$(ENABLE_SAN)" "memory"
|
||||||
CFG += -fsanitize=memory
|
CFG += -fsanitize=memory
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue