[engine] Fix builds targeting Android from a Windows host gen_snapshot (flutter/engine#9190)

This commit is contained in:
Chinmay Garde
2019-06-07 22:46:29 -07:00
committed by GitHub
parent 78de8d01e9
commit 186e038a26
2 changed files with 1 additions and 4 deletions

2
DEPS
View File

@@ -121,7 +121,7 @@ allowed_hosts = [
]
deps = {
'src': 'https://github.com/flutter/buildroot.git' + '@' + '2025e6a31c70d7fca9bcb6618ab9a6a2c15b9a4f',
'src': 'https://github.com/flutter/buildroot.git' + '@' + '263ee3b119f686591f8bb131bf22f53d384c2be2',
# Fuchsia compatibility
#

View File

@@ -171,10 +171,7 @@ def to_gn_args(args):
else:
gn_args['dart_target_arch'] = gn_args['target_cpu']
# No cross-compilation on Windows (for now).
if sys.platform.startswith(('cygwin', 'win')):
if 'target_os' in gn_args:
gn_args['target_os'] = 'win'
if 'target_cpu' in gn_args:
gn_args['target_cpu'] = cpu_for_target_arch(gn_args['target_cpu'])