Merge "Only emit enabled VNDK libraries"

This commit is contained in:
Treehugger Robot
2018-02-21 02:35:31 +00:00
committed by Gerrit Code Review

View File

@@ -178,7 +178,7 @@ var (
// gather list of vndk-core, vndk-sp, and ll-ndk libs
func vndkMutator(mctx android.BottomUpMutatorContext) {
if m, ok := mctx.Module().(*Module); ok {
if m, ok := mctx.Module().(*Module); ok && m.Enabled() {
if lib, ok := m.linker.(*llndkStubDecorator); ok {
vndkLibrariesLock.Lock()
defer vndkLibrariesLock.Unlock()