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

Commit 82a58294 authored by Ivan Lozano's avatar Ivan Lozano Committed by Gerrit Code Review
Browse files

Merge "Rust: Collect gnco files with CLANG_COVERAGE too."

parents de65fa19 d5d15c86
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -82,8 +82,19 @@ ifndef LOCAL_IS_HOST_MODULE
  endif
endif

create_coverage_zip :=

ifeq ($(NATIVE_COVERAGE),true)
   create_coverage_zip := true
endif

# Until Rust supports LLVM coverage, Soong assumes GCOV coverage in both cases.
# Therefore we should create the coverage zip with the gcno files in this case as well.
ifeq ($(CLANG_COVERAGE),true)
   create_coverage_zip := true
endif

ifdef create_coverage_zip
  ifneq (,$(strip $(LOCAL_PREBUILT_COVERAGE_ARCHIVE)))
    $(eval $(call copy-one-file,$(LOCAL_PREBUILT_COVERAGE_ARCHIVE),$(intermediates)/$(LOCAL_MODULE).zip))
    ifneq ($(LOCAL_UNINSTALLABLE_MODULE),true)