Convert coverage libs as alwayslink

Bug: 291090629
Test: bp2build.sh and CI
Change-Id: I050a870b36b5bc84dbdbca73405e0a0fab1aef86
This commit is contained in:
Liz Kammer
2023-07-14 15:24:35 -04:00
parent 9488eb82d4
commit 3847f21848
2 changed files with 29 additions and 2 deletions

View File

@@ -48,6 +48,7 @@ func (cov *coverage) props() []interface{} {
func getGcovProfileLibraryName(ctx ModuleContextIntf) string {
// This function should only ever be called for a cc.Module, so the
// following statement should always succeed.
// LINT.IfChange
if ctx.useSdk() {
return "libprofile-extras_ndk"
} else {
@@ -63,6 +64,7 @@ func getClangProfileLibraryName(ctx ModuleContextIntf) string {
} else {
return "libprofile-clang-extras"
}
// LINT.ThenChange(library.go)
}
func (cov *coverage) deps(ctx DepsContext, deps Deps) Deps {