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

Commit 460d751b authored by Jiyong Park's avatar Jiyong Park Committed by Automerger Merge Worker
Browse files

Merge "Revert "Revert "Allow libz to have stub even though it's not an ...""...

Merge "Revert "Revert "Allow libz to have stub even though it's not an ..."" am: 550ff8cb am: df88e6fd am: 98a8d641

Change-Id: I7322b3cd7c022559109f2ad3663d5fa10a5f1d78
parents b55f1374 98a8d641
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -309,7 +309,13 @@ 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 we in general can't guarantee that
		// libz will behave consistently especially about the compression.
		// i.e. the compressed output might be different across releases.
		// As the library is an external one, it's risky to keep the compatibility
		// promise if it becomes an LLNDK.
		mctx.PropertyErrorf("vndk.enabled", "This library provides stubs. Shouldn't be VNDK. Consider making it as LLNDK")
	}