Merge "Set a BIONIC_COVERAGE .mk variable" am: bd7e1a38ba am: 8fdd8e7553

Original change: https://android-review.googlesource.com/c/platform/build/+/1918952

Change-Id: I4735b3327aa5b66b19b1065506e0a83350f62f11
This commit is contained in:
Pirama Arumuga Nainar
2022-01-10 23:07:31 +00:00
committed by Automerger Merge Worker

View File

@@ -331,6 +331,22 @@ else
JAVA_TMPDIR_ARG :=
endif
# http://b/210012154 Set BIONIC_COVERAGE if coverage is enabled for bionic. This
# disable continuous coverage and removes '%c' from init.environ.rc:LLVM_PROFILE_FILE
ifeq ($(NATIVE_COVERAGE_PATHS),*)
ifeq ($(filter bionic%,$(NATIVE_COVERAGE_EXCLUDE_PATHS)),)
BIONIC_COVERAGE := true
else
BIONIC_COVERAGE := false
endif
else
ifeq ($(filter bionic%,$(NATIVE_COVERAGE_PATHS)),)
BIONIC_COVERAGE := false
else
BIONIC_COVERAGE := true
endif
endif
# ###############################################################
# Include sub-configuration files
# ###############################################################