mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 08:07:11 +00:00
[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:
parent
ef139fbef3
commit
d00f99cde9
1 changed files with 18 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue