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:
@@ -505,6 +505,7 @@ func (library *libraryDecorator) compile(ctx ModuleContext, flags Flags, deps Pa
|
||||
ctx.SetProvider(cc.SharedLibraryInfoProvider, cc.SharedLibraryInfo{
|
||||
SharedLibrary: outputFile,
|
||||
UnstrippedSharedLibrary: outputFile,
|
||||
Target: ctx.Target(),
|
||||
})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user