Merge "Rust: Collect gnco files with CLANG_COVERAGE too." am: 82a58294cc
Original change: https://android-review.googlesource.com/c/platform/build/+/1492557 Change-Id: I017512260cb4ab232b3e742d0085c37e7fe13360
This commit is contained in:
@@ -82,8 +82,19 @@ ifndef LOCAL_IS_HOST_MODULE
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
create_coverage_zip :=
|
||||||
|
|
||||||
ifeq ($(NATIVE_COVERAGE),true)
|
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)))
|
ifneq (,$(strip $(LOCAL_PREBUILT_COVERAGE_ARCHIVE)))
|
||||||
$(eval $(call copy-one-file,$(LOCAL_PREBUILT_COVERAGE_ARCHIVE),$(intermediates)/$(LOCAL_MODULE).zip))
|
$(eval $(call copy-one-file,$(LOCAL_PREBUILT_COVERAGE_ARCHIVE),$(intermediates)/$(LOCAL_MODULE).zip))
|
||||||
ifneq ($(LOCAL_UNINSTALLABLE_MODULE),true)
|
ifneq ($(LOCAL_UNINSTALLABLE_MODULE),true)
|
||||||
|
Reference in New Issue
Block a user