From f5f4ad3db6b3c0a58381ed808467c174491adbb3 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Fri, 19 Jan 2024 15:41:48 -0800 Subject: Convert coverageMutator to a TransitionMutator Convert coverageMutator to a TransitionMutator as a step towards variants-on-demand. Bug: 319288033 Test: coverage_test.go Test: treehugger coverage builds Change-Id: Ic50c0040dea8b42c36b5d784221daa00b7b0d379 --- filesystem/filesystem.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'filesystem/filesystem.go') diff --git a/filesystem/filesystem.go b/filesystem/filesystem.go index 7b207d6ce..2f6476c82 100644 --- a/filesystem/filesystem.go +++ b/filesystem/filesystem.go @@ -512,6 +512,6 @@ func sha1sum(values []string) string { var _ cc.UseCoverage = (*filesystem)(nil) -func (*filesystem) IsNativeCoverageNeeded(ctx android.BaseModuleContext) bool { +func (*filesystem) IsNativeCoverageNeeded(ctx android.IncomingTransitionContext) bool { return ctx.Device() && ctx.DeviceConfig().NativeCoverageEnabled() } -- cgit v1.2.3-59-g8ed1b