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
This commit is contained in:
parent
895e224d8f
commit
1bc40c56b9
1 changed files with 4 additions and 0 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue