Merge "Add LOCAL_NOSANITIZE."

This commit is contained in:
Evgenii Stepanov 2016-06-30 22:49:52 +00:00 committed by Gerrit Code Review
commit ff3341b33b
2 changed files with 6 additions and 0 deletions

View File

@ -189,6 +189,7 @@ LOCAL_DPI_VARIANTS:=
LOCAL_DPI_FILE_STEM:=
LOCAL_SANITIZE:=
LOCAL_SANITIZE_RECOVER:=
LOCAL_NOSANITIZE:=
LOCAL_DBUS_PROXY_PREFIX:=
LOCAL_INIT_RC:=
LOCAL_MODULE_HOST_OS:=

View File

@ -34,6 +34,11 @@ ifeq ($(LOCAL_SANITIZE),never)
my_sanitize :=
endif
my_nosanitize = $(strip $(LOCAL_NOSANITIZE))
ifneq ($(my_nosanitize),)
my_sanitize := $(filter-out $(my_nosanitize),$(my_sanitize))
endif
# TSAN is not supported on 32-bit architectures. For non-multilib cases, make
# its use an error. For multilib cases, don't use it for the 32-bit case.
ifneq ($(filter thread,$(my_sanitize)),)