diff --git a/cc/library.go b/cc/library.go index af9aaca51..260ff7544 100644 --- a/cc/library.go +++ b/cc/library.go @@ -1110,6 +1110,7 @@ func (library *libraryDecorator) linkShared(ctx ModuleContext, UnstrippedSharedLibrary: library.unstrippedOutputFile, CoverageSharedLibrary: library.coverageOutputFile, StaticAnalogue: staticAnalogue, + Target: ctx.Target(), }) stubs := ctx.GetDirectDepsWithTag(stubImplDepTag) diff --git a/cc/linkable.go b/cc/linkable.go index ab5a552c1..d15812eb4 100644 --- a/cc/linkable.go +++ b/cc/linkable.go @@ -168,6 +168,7 @@ func HeaderDepTag() blueprint.DependencyTag { type SharedLibraryInfo struct { SharedLibrary android.Path UnstrippedSharedLibrary android.Path + Target android.Target TableOfContents android.OptionalPath CoverageSharedLibrary android.OptionalPath diff --git a/cc/ndk_prebuilt.go b/cc/ndk_prebuilt.go index 8d522d0c4..b91c73722 100644 --- a/cc/ndk_prebuilt.go +++ b/cc/ndk_prebuilt.go @@ -188,6 +188,7 @@ func (ndk *ndkPrebuiltStlLinker) link(ctx ModuleContext, flags Flags, ctx.SetProvider(SharedLibraryInfoProvider, SharedLibraryInfo{ SharedLibrary: lib, UnstrippedSharedLibrary: lib, + Target: ctx.Target(), }) } diff --git a/cc/prebuilt.go b/cc/prebuilt.go index 2cd18cb99..411a3695a 100644 --- a/cc/prebuilt.go +++ b/cc/prebuilt.go @@ -185,6 +185,7 @@ func (p *prebuiltLibraryLinker) link(ctx ModuleContext, ctx.SetProvider(SharedLibraryInfoProvider, SharedLibraryInfo{ SharedLibrary: outputFile, UnstrippedSharedLibrary: p.unstrippedOutputFile, + Target: ctx.Target(), TableOfContents: p.tocFile, }) diff --git a/cc/snapshot_prebuilt.go b/cc/snapshot_prebuilt.go index 2003e03ff..020dcd77f 100644 --- a/cc/snapshot_prebuilt.go +++ b/cc/snapshot_prebuilt.go @@ -605,6 +605,7 @@ func (p *snapshotLibraryDecorator) link(ctx ModuleContext, flags Flags, deps Pat ctx.SetProvider(SharedLibraryInfoProvider, SharedLibraryInfo{ SharedLibrary: in, UnstrippedSharedLibrary: p.unstrippedOutputFile, + Target: ctx.Target(), TableOfContents: p.tocFile, }) diff --git a/cc/vndk_prebuilt.go b/cc/vndk_prebuilt.go index 04162cdce..cf7c8b6cc 100644 --- a/cc/vndk_prebuilt.go +++ b/cc/vndk_prebuilt.go @@ -166,6 +166,7 @@ func (p *vndkPrebuiltLibraryDecorator) link(ctx ModuleContext, ctx.SetProvider(SharedLibraryInfoProvider, SharedLibraryInfo{ SharedLibrary: in, UnstrippedSharedLibrary: p.unstrippedOutputFile, + Target: ctx.Target(), TableOfContents: p.tocFile, }) diff --git a/rust/library.go b/rust/library.go index 4ac52b428..8f0a50c20 100644 --- a/rust/library.go +++ b/rust/library.go @@ -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(), }) }