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

Commit 6682ef42 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Global ThinLTO: opt out vndk binaries as a workaround"

parents 38cfe295 134161f7
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)
			}