diff --git a/cc/vndk.go b/cc/vndk.go index 1244b13c7..dbe1f3b5b 100644 --- a/cc/vndk.go +++ b/cc/vndk.go @@ -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()