Merge "Revert "Allow libz to have stub even though it's not an LLNDK li..."" am: 03c694d070 am: 0149ab8ae5

Change-Id: Id9dd37bc86ee07ef6215d91c0bce4025efbd4d61
This commit is contained in:
Jiyong Park 2020-05-18 09:41:34 +00:00 committed by Automerger Merge Worker
commit b93c0cb8ec

View file

@ -309,12 +309,7 @@ func processVndkLibrary(mctx android.BottomUpMutatorContext, m *Module) {
panic(err)
}
if m.HasStubsVariants() && name != "libz" {
// b/155456180 libz is the ONLY exception here. We don't want to make
// libz an LLNDK library because APIs required for vendors might be
// wider than what we expose as NDK/Mainline APIs. As the library is
// an external one, it's risky to keep the API stability promise if
// it becomes an LLNDK.
if m.HasStubsVariants() {
mctx.PropertyErrorf("vndk.enabled", "This library provides stubs. Shouldn't be VNDK. Consider making it as LLNDK")
}