diff --git a/cc/lto.go b/cc/lto.go index 820c1f08c..df9ca0ab8 100644 --- a/cc/lto.go +++ b/cc/lto.go @@ -162,7 +162,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