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 --- rust/rust.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rust/rust.go') diff --git a/rust/rust.go b/rust/rust.go index 34ce4c545..245ed2e8e 100644 --- a/rust/rust.go +++ b/rust/rust.go @@ -535,7 +535,7 @@ func (mod *Module) isCoverageVariant() bool { var _ cc.Coverage = (*Module)(nil) -func (mod *Module) IsNativeCoverageNeeded(ctx android.BaseModuleContext) bool { +func (mod *Module) IsNativeCoverageNeeded(ctx android.IncomingTransitionContext) bool { return mod.coverage != nil && mod.coverage.Properties.NeedCoverageVariant } -- cgit v1.2.3-59-g8ed1b