From b90ff82772f53e6360bafa343cd412ac41064bea Mon Sep 17 00:00:00 2001 From: Yi Kong Date: Thu, 18 Aug 2022 14:52:08 +0000 Subject: [PATCH] Revert "Turn on Global ThinLTO by default" This reverts commit 406e7b725b9d51ff5e9eff6ed794a9e35a2eb3e3. Reason for revert: ndk_translation causes clang to crash Change-Id: I61b262157f9f57c739391757d5a1f95299ddadca --- cc/lto.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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