Make cc.NewLLndkStubLibrary as public

We need to extend llndk_library to automatically set symbol_file for the
llndk version of libclang_rt.asan* libraries.

Bug: 67011251
Test: build

Change-Id: Ib6964817759f9228456e4fb2a27fce3bc09423a9
This commit is contained in:
Jiyong Park 2017-11-14 20:53:00 +09:00
parent c7d1254119
commit 64ca4b722a

View file

@ -151,7 +151,7 @@ func (stub *llndkStubDecorator) link(ctx ModuleContext, flags Flags, deps PathDe
return stub.libraryDecorator.link(ctx, flags, deps, objs)
}
func newLLndkStubLibrary() *Module {
func NewLLndkStubLibrary() *Module {
module, library := NewLibrary(android.DeviceSupported)
library.BuildOnlyShared()
module.stl = nil
@ -175,7 +175,7 @@ func newLLndkStubLibrary() *Module {
}
func llndkLibraryFactory() android.Module {
module := newLLndkStubLibrary()
module := NewLLndkStubLibrary()
android.InitAndroidArchModule(module, android.DeviceSupported, android.MultilibBoth)
return module
}