diff --git a/cc/lto.go b/cc/lto.go index 1da69bf16..304790c54 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().IsEnvTrue("GLOBAL_THINLTO") + return !ctx.Config().IsEnvFalse("GLOBAL_THINLTO") } // Propagate lto requirements down from binaries