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
diff --git a/cc/llndk_library.go b/cc/llndk_library.go
index 40373cc..154b3f4 100644
--- a/cc/llndk_library.go
+++ b/cc/llndk_library.go
@@ -151,7 +151,7 @@
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 llndkLibraryFactory() android.Module {
- module := newLLndkStubLibrary()
+ module := NewLLndkStubLibrary()
android.InitAndroidArchModule(module, android.DeviceSupported, android.MultilibBoth)
return module
}