From 64ca4b722a2a016d25b05c975c15b42066390be3 Mon Sep 17 00:00:00 2001 From: Jiyong Park Date: Tue, 14 Nov 2017 20:53:00 +0900 Subject: [PATCH] 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 --- cc/llndk_library.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cc/llndk_library.go b/cc/llndk_library.go index 40373cce1..154b3f4f2 100644 --- a/cc/llndk_library.go +++ b/cc/llndk_library.go @@ -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 }