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

Commit 134161f7 authored by Yi Kong's avatar Yi Kong
Browse files

Global ThinLTO: opt out vndk binaries as a workaround

With global ThinLTO enabled, vndk version has different symbol ordering
from the platform version. Opt out any binaries that has vndk enabled as
a temporary workaround.

Test: GLOBAL_THINLTO=true m
Bug: 169217596
Change-Id: I75b060cbe6c74421d283c6dfbd669af20f466d1f
parent a80b480e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -71,7 +71,8 @@ func (lto *lto) begin(ctx BaseModuleContext) {
	} else if ctx.Config().IsEnvTrue("GLOBAL_THINLTO") {
		staticLib := ctx.static() && !ctx.staticBinary()
		hostBin := ctx.Host()
		if !staticLib && !hostBin {
		vndk := ctx.isVndk() // b/169217596
		if !staticLib && !hostBin && !vndk {
			if !lto.Never() && !lto.FullLTO() {
				lto.Properties.Lto.Thin = boolPtr(true)
			}