Merge "Don't allow a lib having stubs to become a member of VNDK" am: 624dec0b03

Change-Id: Ifecd74fdccb79e9b9e5a35c2e5c4d8443c3e799b
This commit is contained in:
Treehugger Robot
2020-04-13 04:21:35 +00:00
committed by Automerger Merge Worker

View File

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