aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com>2024-04-30 20:04:44 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2024-04-30 20:04:44 +0000
commit40cc23b7092524837a8ff810175d18d484856bbd (patch)
tree647c2015112c5c53198afe71c27876ba2cd9c857
parent13f8f707584eb63e866f0ea5227b91c6dcc11984 (diff)
parent2bdaea7e20c0abaaf56c9f18afbe0bb02a89c02f (diff)
downloadbuild-40cc23b7092524837a8ff810175d18d484856bbd.tar.gz
Merge "Move coverage builds prebuilt special case to make" into main
-rw-r--r--core/product_config.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/product_config.mk b/core/product_config.mk
index 4eeac9546c..f21c1c4188 100644
--- a/core/product_config.mk
+++ b/core/product_config.mk
@@ -314,6 +314,14 @@ endif
ifeq (true,$(PRODUCT_MODULE_BUILD_FROM_SOURCE))
ignore_apex_contributions := true
endif
+ifneq ($(EMMA_INSTRUMENT)$(EMMA_INSTRUMENT_STATIC)$(EMMA_INSTRUMENT_FRAMEWORK)$(CLANG_COVERAGE)$(NATIVE_COVERAGE_PATHS),)
+# Coverage builds for TARGET_RELEASE=foo should always build from source,
+# even if TARGET_RELEASE=foo uses prebuilt mainline modules.
+# This is necessary because the checked-in prebuilts were generated with
+# instrumentation turned off.
+ ignore_apex_contributions := true
+endif
+
ifeq (true, $(ignore_apex_contributions))
PRODUCT_BUILD_IGNORE_APEX_CONTRIBUTION_CONTENTS := true
endif