Merge "Don't allow a lib having stubs to become a member of VNDK"

This commit is contained in:
Treehugger Robot
2020-04-13 04:05:31 +00:00
committed by Gerrit Code Review

View File

@@ -309,6 +309,10 @@ func processVndkLibrary(mctx android.BottomUpMutatorContext, m *Module) {
panic(err)
}
if m.HasStubsVariants() {
mctx.PropertyErrorf("vndk.enabled", "This library provides stubs. Shouldn't be VNDK. Consider making it as LLNDK")
}
vndkLibrariesLock.Lock()
defer vndkLibrariesLock.Unlock()