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:
@@ -151,7 +151,7 @@ func (stub *llndkStubDecorator) link(ctx ModuleContext, flags Flags, deps PathDe
|
|||||||
return stub.libraryDecorator.link(ctx, flags, deps, objs)
|
return stub.libraryDecorator.link(ctx, flags, deps, objs)
|
||||||
}
|
}
|
||||||
|
|
||||||
func newLLndkStubLibrary() *Module {
|
func NewLLndkStubLibrary() *Module {
|
||||||
module, library := NewLibrary(android.DeviceSupported)
|
module, library := NewLibrary(android.DeviceSupported)
|
||||||
library.BuildOnlyShared()
|
library.BuildOnlyShared()
|
||||||
module.stl = nil
|
module.stl = nil
|
||||||
@@ -175,7 +175,7 @@ func newLLndkStubLibrary() *Module {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func llndkLibraryFactory() android.Module {
|
func llndkLibraryFactory() android.Module {
|
||||||
module := newLLndkStubLibrary()
|
module := NewLLndkStubLibrary()
|
||||||
android.InitAndroidArchModule(module, android.DeviceSupported, android.MultilibBoth)
|
android.InitAndroidArchModule(module, android.DeviceSupported, android.MultilibBoth)
|
||||||
return module
|
return module
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user