diff options
author | Yi Kong <yikong@google.com> | 2018-08-13 16:02:49 -0700 |
---|---|---|
committer | Yi Kong <yikong@google.com> | 2018-08-30 14:33:06 -0700 |
commit | 0098166cb426feb527d144f9108407f2cc68690a (patch) | |
tree | 2001895a37ff088c9b9545c2435aea71cbb059f1 /cc/prebuilt.go | |
parent | b69575b1f697edae9f9b78765d50c8117d21f7d1 (diff) | |
download | build_soong-0098166cb426feb527d144f9108407f2cc68690a.tar.gz build_soong-0098166cb426feb527d144f9108407f2cc68690a.tar.bz2 build_soong-0098166cb426feb527d144f9108407f2cc68690a.zip |
Prebuilts shouldn't inherit linker interface
Prebuilts doesn't go through linking stage, thus it should not inherit
any dependencies or flags from linker.go.
Test: m checkbuild
Bug: 29275768
Change-Id: I1f1dc5d65c2fc2dd905e8df44e08d5c83b224d0c
Diffstat (limited to 'cc/prebuilt.go')
-rw-r--r-- | cc/prebuilt.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/cc/prebuilt.go b/cc/prebuilt.go index 3f277aa3..3dd4d11d 100644 --- a/cc/prebuilt.go +++ b/cc/prebuilt.go @@ -51,6 +51,24 @@ type prebuiltLibraryLinker struct { var _ prebuiltLinkerInterface = (*prebuiltLibraryLinker)(nil) +func (p *prebuiltLibraryLinker) linkerInit(ctx BaseModuleContext) {} + +func (p *prebuiltLibraryLinker) linkerDeps(ctx DepsContext, deps Deps) Deps { + // export_header_lib_headers needs to be passed along + return Deps{ + HeaderLibs: p.baseLinker.Properties.Header_libs, + ReexportHeaderLibHeaders: p.baseLinker.Properties.Export_header_lib_headers, + } +} + +func (p *prebuiltLibraryLinker) linkerFlags(ctx ModuleContext, flags Flags) Flags { + return Flags{} +} + +func (p *prebuiltLibraryLinker) linkerProps() []interface{} { + return p.libraryDecorator.linkerProps() +} + func (p *prebuiltLibraryLinker) link(ctx ModuleContext, flags Flags, deps PathDeps, objs Objects) android.Path { // TODO(ccross): verify shared library dependencies |