Merge "Enable ubsan check flag in build" am: 1907b9905e am: fe3c61839f
am: 5cbdaa4e09
Change-Id: I17cbe8fa6c0ab422bb30c2dab3e4e75386c0d2dc
diff --git a/core/config_sanitizers.mk b/core/config_sanitizers.mk
index 8304b83..c011284 100644
--- a/core/config_sanitizers.mk
+++ b/core/config_sanitizers.mk
@@ -287,12 +287,6 @@
endif
endif
-ifneq ($(filter undefined,$(my_sanitize)),)
- ifndef LOCAL_IS_HOST_MODULE
- $(error ubsan is not yet supported on the target)
- endif
-endif
-
ifneq ($(strip $(LOCAL_SANITIZE_RECOVER)),)
recover_arg := $(subst $(space),$(comma),$(LOCAL_SANITIZE_RECOVER)),
my_cflags += -fsanitize-recover=$(recover_arg)