summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Yi Kong <yikong@google.com> 2022-08-18 14:52:08 +0000
committer Yi Kong <yikong@google.com> 2022-08-18 14:53:34 +0000
commitb90ff82772f53e6360bafa343cd412ac41064bea (patch)
treed1fbe0b6dee1f269e19961036a215ec5b7b63fbb
parent406e7b725b9d51ff5e9eff6ed794a9e35a2eb3e3 (diff)
Revert "Turn on Global ThinLTO by default"
This reverts commit 406e7b725b9d51ff5e9eff6ed794a9e35a2eb3e3. Reason for revert: ndk_translation causes clang to crash Change-Id: I61b262157f9f57c739391757d5a1f95299ddadca
-rw-r--r--cc/lto.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/lto.go b/cc/lto.go
index 304790c54..1da69bf16 100644
--- a/cc/lto.go
+++ b/cc/lto.go
@@ -155,7 +155,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