Don't enable LTO on Windows hosts as the toolchain does not read the value. (flutter/engine#5364)

This commit is contained in:
Chinmay Garde
2018-05-24 14:21:42 -07:00
committed by GitHub
parent e94cb4f2f9
commit 295ca37bac

View File

@@ -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