aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKun Niu <kunniu@google.com>2019-08-07 13:28:13 -0700
committerandroid-build-merger <android-build-merger@google.com>2019-08-07 13:28:13 -0700
commit1e8fd726dd17e0a5323560e001be6ab989869add (patch)
tree5007c83626fb694fa9c15cfc27d56401728b3232
parenteeebdfc6132f75e7f2f0a5e354bdf429c61fba7d (diff)
parent97f3652c7b33945d6966c835621b622ff89cd4f4 (diff)
downloadbuild_soong-1e8fd726dd17e0a5323560e001be6ab989869add.tar.gz
build_soong-1e8fd726dd17e0a5323560e001be6ab989869add.tar.bz2
build_soong-1e8fd726dd17e0a5323560e001be6ab989869add.zip
Build module from source branch instead of using prebuilds when coverage is enabled. am: 1bc40c56b9
am: 97f3652c7b Change-Id: If7edb76d90d3e14609765b04a21da5509e90cb03
-rw-r--r--apex/apex.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/apex/apex.go b/apex/apex.go
index c6a1f464..e97862c4 100644
--- a/apex/apex.go
+++ b/apex/apex.go
@@ -1346,6 +1346,10 @@ func (p *Prebuilt) DepsMutator(ctx android.BottomUpMutatorContext) {
// to build the prebuilts themselves.
forceDisable = forceDisable || ctx.Config().UnbundledBuild()
+ // Force disable the prebuilts when coverage is enabled.
+ forceDisable = forceDisable || ctx.DeviceConfig().NativeCoverageEnabled()
+ forceDisable = forceDisable || ctx.Config().IsEnvTrue("EMMA_INSTRUMENT")
+
// b/137216042 don't use prebuilts when address sanitizer is on
forceDisable = forceDisable || android.InList("address", ctx.Config().SanitizeDevice()) ||
android.InList("hwaddress", ctx.Config().SanitizeDevice())