Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d348ed88 authored by Oliver Nguyen's avatar Oliver Nguyen Committed by Automerger Merge Worker
Browse files

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

Merge "Export llvm-profdata for Clang coverage builds." am: 337f42e7 am: 09344d49 am: 6dae809d am: 402e840c

Change-Id: Iac7904969687f326eeace1de943e1fbdc4de8d2e
parents 71fe4e41 402e840c
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -4907,6 +4907,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