Enable code coverage for cc shared library

Bug: None
Test: Manual and unit tests
Change-Id: I5064e4407d3451ff172ab203256f3c073cc0ad1b
This commit is contained in:
Yu Liu
2022-12-07 15:45:30 -08:00
parent 841fc797c1
commit f01a0f0ca9
4 changed files with 24 additions and 7 deletions

View File

@@ -644,6 +644,8 @@ func binaryBp2buildAttrs(ctx android.TopDownMutatorContext, m *Module) binaryAtt
Features: baseAttrs.features,
sdkAttributes: bp2BuildParseSdkAttributes(m),
Native_coverage: baseAttrs.Native_coverage,
}
m.convertTidyAttributes(ctx, &attrs.tidyAttributes)
@@ -703,4 +705,6 @@ type binaryAttributes struct {
sdkAttributes
tidyAttributes
Native_coverage *bool
}