Disable coverage for native-bridge modules

Bug: http://b/137883967

With coverage enabled, native-bridge modules throw a SEGV_ACCERR.

Test: Successfully run the app linked in the bug on a coverage build.
Change-Id: I9f3622b7b6d3189337c445a26d6bf81c96820c2e
This commit is contained in:
Pirama Arumuga Nainar
2019-09-12 13:18:48 -07:00
parent 931849f36f
commit 5f69b9a068

View File

@@ -666,6 +666,10 @@ func (c *Module) bootstrap() bool {
}
func (c *Module) nativeCoverage() bool {
// Bug: http://b/137883967 - native-bridge modules do not currently work with coverage
if c.Target().NativeBridge == android.NativeBridgeEnabled {
return false
}
return c.linker != nil && c.linker.nativeCoverage()
}