forked from openkylin/platform_build
Merge "Add LOCAL_NOSANITIZE."
This commit is contained in:
commit
ff3341b33b
|
@ -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:=
|
||||
|
|
|
@ -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)),)
|
||||
|
|
Loading…
Reference in New Issue