Add Target to cc.SharedLibraryInfo

Dependencies from common arch modules like java libraires to cc modules
may need to retrieve the Target of the library, add it to
SharedLibraryInfo.

Bug: 176593487
Test: cc_test.go
Change-Id: I93ab9da5fab2ccc42c6b483a6d83c071b541d1e6
This commit is contained in:
Colin Cross
2021-01-26 11:00:18 -08:00
parent e09ac17466
commit 2df8177575
7 changed files with 7 additions and 0 deletions

View File

@@ -188,6 +188,7 @@ func (ndk *ndkPrebuiltStlLinker) link(ctx ModuleContext, flags Flags,
ctx.SetProvider(SharedLibraryInfoProvider, SharedLibraryInfo{
SharedLibrary: lib,
UnstrippedSharedLibrary: lib,
Target: ctx.Target(),
})
}