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