Reland "Turn on Global ThinLTO by default"
This reverts commit b90ff82772f53e6360bafa343cd412ac41064bea.
All the breakages are now fixed or mitigated.
Bug: 169004486
Change-Id: Ibec4b1f0a50c5ef6769bc6916a81721a4ce03c60
Test: presubmit
diff --git a/cc/lto.go b/cc/lto.go
index 1da69bf..304790c 100644
--- a/cc/lto.go
+++ b/cc/lto.go
@@ -155,7 +155,7 @@
}
func GlobalThinLTO(ctx android.BaseModuleContext) bool {
- return ctx.Config().IsEnvTrue("GLOBAL_THINLTO")
+ return !ctx.Config().IsEnvFalse("GLOBAL_THINLTO")
}
// Propagate lto requirements down from binaries