Disable Global ThinLTO by default

Because enabling ThinLTO makes some constructor functions not called
in arm64 executables.

Bug: 295944813
Test: build
Change-Id: Ic0cab5fd80aa86d0d9ca1131564b747a445c6e46
This commit is contained in:
Yabin Cui
2023-08-14 15:47:36 -07:00
parent 9db358d43d
commit 9c81c0cfd9

View File

@@ -162,7 +162,7 @@ func (lto *lto) Never() bool {
}
func GlobalThinLTO(ctx android.BaseModuleContext) bool {
return !ctx.Config().IsEnvFalse("GLOBAL_THINLTO")
return ctx.Config().IsEnvTrue("GLOBAL_THINLTO")
}
// Propagate lto requirements down from binaries