Merge "Export llvm-profdata for Clang coverage builds." am: 337f42e7d1

Change-Id: Ic9c2dcd86cd21e5d61aa28336f8826290e59b296
This commit is contained in:
Oliver Nguyen 2020-03-30 20:51:22 +00:00 committed by Automerger Merge Worker
commit 09344d49c6
1 changed files with 13 additions and 0 deletions

View File

@ -4905,6 +4905,19 @@ $(COVERAGE_ZIP): $(SOONG_ZIP)
$(hide) find $(TARGET_OUT_COVERAGE) | sort >$(PRIVATE_LIST_FILE)
$(hide) $(SOONG_ZIP) -d -o $@ -C $(TARGET_OUT_COVERAGE) -l $(PRIVATE_LIST_FILE)
#------------------------------------------------------------------
# Export the LLVM profile data tool and dependencies for Clang coverage processing
#
ifeq (true,$(CLANG_COVERAGE))
LLVM_PROFDATA := $(LLVM_PREBUILTS_BASE)/linux-x86/$(LLVM_PREBUILTS_VERSION)/bin/llvm-profdata
LIBCXX := $(LLVM_PREBUILTS_BASE)/linux-x86/$(LLVM_PREBUILTS_VERSION)/lib64/libc++.so.1
PROFDATA_ZIP := $(PRODUCT_OUT)/llvm-profdata.zip
$(PROFDATA_ZIP): $(SOONG_ZIP)
$(hide) $(SOONG_ZIP) -d -o $@ -C $(LLVM_PREBUILTS_BASE)/linux-x86/$(LLVM_PREBUILTS_VERSION) -f $(LLVM_PROFDATA) -f $(LIBCXX)
$(call dist-for-goals,droidcore,$(PROFDATA_ZIP))
endif
# -----------------------------------------------------------------
# A zip of the Android Apps. Not keeping full path so that we don't
# include product names when distributing