Merge "Make native_coverage clause work with ClangCoverage"
This commit is contained in:
@@ -1556,7 +1556,7 @@ func (a *apexBundle) AddSanitizerDependencies(ctx android.BottomUpMutatorContext
|
||||
var _ cc.Coverage = (*apexBundle)(nil)
|
||||
|
||||
func (a *apexBundle) IsNativeCoverageNeeded(ctx android.BaseModuleContext) bool {
|
||||
return ctx.Device() && (ctx.DeviceConfig().NativeCoverageEnabled() || ctx.DeviceConfig().ClangCoverageEnabled())
|
||||
return ctx.Device() && ctx.DeviceConfig().NativeCoverageEnabled()
|
||||
}
|
||||
|
||||
func (a *apexBundle) PreventInstall() {
|
||||
|
@@ -118,6 +118,7 @@ func TestVndkApexUsesVendorVariant(t *testing.T) {
|
||||
|
||||
t.Run("VNDK APEX supports coverage variants", func(t *testing.T) {
|
||||
ctx, _ := testApex(t, bp, func(fs map[string][]byte, config android.Config) {
|
||||
config.TestProductVariables.GcovCoverage = proptools.BoolPtr(true)
|
||||
config.TestProductVariables.Native_coverage = proptools.BoolPtr(true)
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user