asan: update condition to work with multiple SANITIZE_TARGET values.

The goal is to enable SANITIZE_TARGET='address coverage', which
will be used by LLVMFuzzer.

Bug: 22850550
Change-Id: I953649186a7fae9b2495159237521f264d1de3b6
This commit is contained in:
Ivan Krasin 2015-09-18 12:05:51 -07:00
parent eb8b2188e8
commit 9aa413036b

View file

@ -156,7 +156,7 @@ LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
include $(BUILD_SYSTEM)/base_rules.mk include $(BUILD_SYSTEM)/base_rules.mk
all_fc_files := file_contexts all_fc_files := file_contexts
ifeq (address,$(strip $(SANITIZE_TARGET))) ifneq ($(filter address,$(SANITIZE_TARGET)),)
all_fc_files := $(all_fc_files) file_contexts_asan all_fc_files := $(all_fc_files) file_contexts_asan
endif endif
all_fc_files := $(call build_policy, $(all_fc_files)) all_fc_files := $(call build_policy, $(all_fc_files))