mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Don't enable LTO on Windows hosts as the toolchain does not read the value. (flutter/engine#5364)
This commit is contained in:
parent
e94cb4f2f9
commit
295ca37bac
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user