Add coverage flags for Clang coverage builds.

Bug: 143977934
Test: m CLANG_COVERAGE=true
Test: m NATIVE_COVERAGE=true
Change-Id: I5d07d336e241856961eb0bc9678fdc9d5a076802
This commit is contained in:
Oliver Nguyen
2019-12-06 15:22:41 -08:00
parent af7c2fcb71
commit 1382ab6d31
4 changed files with 44 additions and 13 deletions

View File

@@ -944,6 +944,10 @@ func (c *deviceConfig) NativeCoverageEnabled() bool {
return Bool(c.config.productVariables.NativeCoverage)
}
func (c *deviceConfig) ClangCoverageEnabled() bool {
return Bool(c.config.productVariables.ClangCoverage)
}
func (c *deviceConfig) CoverageEnabledForPath(path string) bool {
coverage := false
if c.config.productVariables.CoveragePaths != nil {