diff options
author | 2024-01-19 15:41:48 -0800 | |
---|---|---|
committer | 2024-01-24 10:17:10 -0800 | |
commit | f5f4ad3db6b3c0a58381ed808467c174491adbb3 (patch) | |
tree | 2290800d9e0502cfc701b2929103532b7f8e58c5 /rust/rust.go | |
parent | 4aa3e0ab81bc7d8db74e9991d6876d19770179ae (diff) |
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
Diffstat (limited to 'rust/rust.go')
-rw-r--r-- | rust/rust.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |