Merge "Make native_coverage clause work with ClangCoverage"
This commit is contained in:
@@ -45,7 +45,7 @@ func (cov *coverage) deps(ctx DepsContext, deps Deps) Deps {
|
||||
|
||||
func (cov *coverage) flags(ctx ModuleContext, flags Flags, deps PathDeps) (Flags, PathDeps) {
|
||||
|
||||
if !ctx.DeviceConfig().NativeCoverageEnabled() && !ctx.DeviceConfig().ClangCoverageEnabled() {
|
||||
if !ctx.DeviceConfig().NativeCoverageEnabled() {
|
||||
return flags, deps
|
||||
}
|
||||
|
||||
|
@@ -88,6 +88,7 @@ func testRustContext(t *testing.T, bp string, coverage bool) *android.TestContex
|
||||
config := testConfig(bp)
|
||||
|
||||
if coverage {
|
||||
config.TestProductVariables.GcovCoverage = proptools.BoolPtr(true)
|
||||
config.TestProductVariables.Native_coverage = proptools.BoolPtr(true)
|
||||
config.TestProductVariables.NativeCoveragePaths = []string{"*"}
|
||||
}
|
||||
|
Reference in New Issue
Block a user