From 295ca37bac64d8a2a525d8a481a860efb6946ba1 Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Thu, 24 May 2018 14:21:42 -0700 Subject: [PATCH] Don't enable LTO on Windows hosts as the toolchain does not read the value. (flutter/engine#5364) --- engine/src/flutter/tools/gn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/flutter/tools/gn b/engine/src/flutter/tools/gn index 74bc55bc9b..923a12f6de 100755 --- a/engine/src/flutter/tools/gn +++ b/engine/src/flutter/tools/gn @@ -84,7 +84,7 @@ def to_gn_args(args): # There is no point in enabling LTO in unoptimized builds. enable_lto = False - if args.target_os != 'win': + if not sys.platform.startswith('win'): # The GN arg is not available in the windows toolchain. gn_args['enable_lto'] = enable_lto