diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-06-02 18:48:35 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-06-02 18:48:35 +0000 |
commit | 3bca0c473c14a5ae86c3d4ccbf828992adea58be (patch) | |
tree | 8a538e4ee9bdc8d97e42f653c97bac3331bbef1e | |
parent | f9236bd91da2e2e8cd2d7a1155986b9c053c662c (diff) | |
parent | f372ce1415ad9078a253af6b80f7f65ad611c0c7 (diff) | |
download | build-3bca0c473c14a5ae86c3d4ccbf828992adea58be.tar.gz |
Snap for 8675912 from f372ce1415ad9078a253af6b80f7f65ad611c0c7 to tm-frc-media-release
Change-Id: I8b5f531581fdf45ab8516c45dda751b96e01165b
-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. |