diff options
author | Paul Duffin <paulduffin@google.com> | 2022-05-26 10:19:18 +0000 |
---|---|---|
committer | Artur Satayev <satayev@google.com> | 2022-05-31 17:10:41 +0000 |
commit | f372ce1415ad9078a253af6b80f7f65ad611c0c7 (patch) | |
tree | 8a538e4ee9bdc8d97e42f653c97bac3331bbef1e | |
parent | e59bd2aa7c70511611d4a54138b655dbbdf4eb2a (diff) | |
download | build-f372ce1415ad9078a253af6b80f7f65ad611c0c7.tar.gz |
Disable prebuilts when building with clang coverage
Prebuilts broke the cf_x86_phone-userdebug_coverage_bionic
on tm-release build.
Bug: 230478310
Bug: 223592962
Test: presubmit
Merged-In: I3ed091156c4b39dad6eaf578144ac3d070025988
Merged-In: I9731400acfade95b3eab8f2d99fddb4cf856aa91
Merged-In: I6eca2fcc670dccef4a6cd9dc3f08003eb47e5bca
Change-Id: I40c10e88b824e5f4b783b1dc0a500096fad209b2
-rw-r--r-- | core/android_soong_config_vars.mk | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/core/android_soong_config_vars.mk b/core/android_soong_config_vars.mk index a6116f215b..28181ebfae 100644 --- a/core/android_soong_config_vars.mk +++ b/core/android_soong_config_vars.mk @@ -48,6 +48,18 @@ ifneq ($(SANITIZE_TARGET)$(EMMA_INSTRUMENT_FRAMEWORK),) BRANCH_DEFAULT_MODULE_BUILD_FROM_SOURCE := true endif +ifneq ($(CLANG_COVERAGE)$(NATIVE_COVERAGE_PATHS),) + # Always use sources when building with clang coverage and native coverage. + # It is possible that there are certain situations when building with coverage + # would work with prebuilts, e.g. when the coverage is not being applied to + # modules for which we provide prebuilts. Unfortunately, determining that + # would require embedding knowledge of which coverage paths affect which + # modules here. That would duplicate a lot of information, add yet another + # location module authors have to update and complicate the logic here. + # For nowe we will just always build from sources when doing coverage builds. + BRANCH_DEFAULT_MODULE_BUILD_FROM_SOURCE := true +endif + # TODO(b/172063604): Remove once products no longer use dex2oat(d)s. # If the product uses dex2oats and/or dex2oatds then build from sources as # ART does not currently provide prebuilts of those tools. |