Skip to content

Commit

Permalink
Don't enable LTO on Windows hosts as the toolchain does not read the …
Browse files Browse the repository at this point in the history
…value. (flutter#5364)
  • Loading branch information
chinmaygarde authored May 24, 2018
1 parent fb709e2 commit 983f39c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/gn
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 983f39c

Please sign in to comment.