aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKun Niu <kunniu@google.com>2019-08-07 13:13:03 -0700
committerandroid-build-merger <android-build-merger@google.com>2019-08-07 13:13:03 -0700
commit97f3652c7b33945d6966c835621b622ff89cd4f4 (patch)
tree5007c83626fb694fa9c15cfc27d56401728b3232
parenteeebdfc6132f75e7f2f0a5e354bdf429c61fba7d (diff)
parent1bc40c56b9f9f02191d14bf9812101e0ae55bb2f (diff)
downloadbuild_soong-97f3652c7b33945d6966c835621b622ff89cd4f4.tar.gz
build_soong-97f3652c7b33945d6966c835621b622ff89cd4f4.tar.bz2
build_soong-97f3652c7b33945d6966c835621b622ff89cd4f4.zip
Build module from source branch instead of using prebuilds when coverage is enabled.
am: 1bc40c56b9 Change-Id: I09e1fc90455f350128ca8a70702199c12ed3264c
-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())