Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 86a5ba67 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Allow libz to have stub even though it's not an LLNDK library" am: b4ce1e97

Change-Id: I4404200702da8ee11d01f4658703920e9002e22c
parents 30a6edb9 b4ce1e97
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -309,7 +309,12 @@ func processVndkLibrary(mctx android.BottomUpMutatorContext, m *Module) {
		panic(err)
	}

	if m.HasStubsVariants() {
	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.
		mctx.PropertyErrorf("vndk.enabled", "This library provides stubs. Shouldn't be VNDK. Consider making it as LLNDK")
	}