Revert "Turn on Global ThinLTO by default"
This reverts commit 406e7b725b9d51ff5e9eff6ed794a9e35a2eb3e3.
Reason for revert: ndk_translation causes clang to crash
Change-Id: I61b262157f9f57c739391757d5a1f95299ddadca
diff --git a/cc/lto.go b/cc/lto.go
index 304790c..1da69bf 100644
--- a/cc/lto.go
+++ b/cc/lto.go
@@ -155,7 +155,7 @@
}
func GlobalThinLTO(ctx android.BaseModuleContext) bool {
- return !ctx.Config().IsEnvFalse("GLOBAL_THINLTO")
+ return ctx.Config().IsEnvTrue("GLOBAL_THINLTO")
}
// Propagate lto requirements down from binaries