From bb2b4bce5bd9998eb85beab30e61e2990f8f9d5f Mon Sep 17 00:00:00 2001 From: liuchao Date: Mon, 10 Jul 2017 11:40:08 +0800 Subject: [PATCH] Enable ubsan check flag in build Ubsan is currently support ARM/ARM64, so It's OK to enable the build Flag Test: build test module with flags in Android.mk: LOCAL_SANITIZE := undefined LOCAL_SANITIZE_DIAG := undefined BUG:38250996 Change-Id: I6c640bad67353cc736640b2e3c4a0b1812dde3fc --- core/config_sanitizers.mk | 6 ------ 1 file changed, 6 deletions(-) diff --git a/core/config_sanitizers.mk b/core/config_sanitizers.mk index 0d182e9e17..ce7ece3752 100644 --- a/core/config_sanitizers.mk +++ b/core/config_sanitizers.mk @@ -284,12 +284,6 @@ ifneq ($(filter address,$(my_sanitize)),) 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)