[infra] Ensure args.gn is updated for the Linux cross builds during gclient runhooks.

Issue #29580

R=zra@google.com

Review-Url: https://codereview.chromium.org/2873693002 .
This commit is contained in:
Ryan Macnak 2017-05-09 09:47:49 -07:00
parent ef139fbef3
commit d00f99cde9

View file

@ -46,6 +46,21 @@ def RunAndroidGn(options):
return Execute(gn_command)
def RunCrossGn(options):
if HOST_OS != 'linux':
return 0
gn_command = [
'python',
os.path.join(DART_ROOT, 'tools', 'gn.py'),
'-m', 'all',
'-a', 'arm,arm64',
]
if options.verbose:
gn_command.append('-v')
print ' '.join(gn_command)
return Execute(gn_command)
def RunHostGn(options):
gn_command = [
'python',
@ -61,6 +76,9 @@ def RunHostGn(options):
def RunGn(options):
status = RunHostGn(options)
if status != 0:
return status
status = RunCrossGn(options)
if status != 0:
return status
return RunAndroidGn(options)