diff options
author | Kun Niu <kunniu@google.com> | 2019-07-29 16:28:57 -0700 |
---|---|---|
committer | Kun Niu <kunniu@google.com> | 2019-08-05 13:36:20 -0700 |
commit | 1bc40c56b9f9f02191d14bf9812101e0ae55bb2f (patch) | |
tree | bc22a17ebb80eeace1ed5aa7723326088b9fabad | |
parent | 895e224d8fad6877918ef05545d7423a30d72c2b (diff) | |
download | build_soong-1bc40c56b9f9f02191d14bf9812101e0ae55bb2f.tar.gz build_soong-1bc40c56b9f9f02191d14bf9812101e0ae55bb2f.tar.bz2 build_soong-1bc40c56b9f9f02191d14bf9812101e0ae55bb2f.zip |
Build module from source branch instead of using prebuilds when coverage is enabled.
Test: successfully get coverage data from coverage build.
Bug: 137865099
Change-Id: I7df96c2b2c2ec2859393fb2c19ffe1081d112c96
Merged-In: I7df96c2b2c2ec2859393fb2c19ffe1081d112c96
-rw-r--r-- | apex/apex.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apex/apex.go b/apex/apex.go index 87c54f3b..69a50f1c 100644 --- a/apex/apex.go +++ b/apex/apex.go @@ -1335,6 +1335,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()) |