Commit 4949daba authored by bradnelson@google.com's avatar bradnelson@google.com

Avoid parallel sync in general on arm boards.

Previous attempts inside the buildbot config missed some places.
This just does it directly in gclient.

Review carefully, this is a depot_tools change.

BUG=None
TEST=None
R=maruel@chromium.org,dschuff@chromium.org

Review URL: http://codereview.chromium.org/10116033

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@132997 0039d316-1c4b-4281-b951-d872f2087c98
parent 9e3e82c1
...@@ -55,12 +55,13 @@ import copy ...@@ -55,12 +55,13 @@ import copy
import logging import logging
import optparse import optparse
import os import os
import platform
import posixpath import posixpath
import pprint import pprint
import re import re
import sys import sys
import urlparse
import urllib import urllib
import urlparse
import breakpad # pylint: disable=W0611 import breakpad # pylint: disable=W0611
...@@ -1498,8 +1499,11 @@ def GenUsage(parser, command): ...@@ -1498,8 +1499,11 @@ def GenUsage(parser, command):
def Parser(): def Parser():
"""Returns the default parser.""" """Returns the default parser."""
parser = optparse.OptionParser(version='%prog ' + __version__) parser = optparse.OptionParser(version='%prog ' + __version__)
# cygwin has issues with parallel sync # cygwin and some arm boards have issues with parallel sync.
jobs = 1 if sys.platform == 'cygwin' else 8 if sys.platform == 'cygwin' or platform.machine().startswith('arm'):
jobs = 1
else:
jobs = 8
parser.add_option('-j', '--jobs', default=jobs, type='int', parser.add_option('-j', '--jobs', default=jobs, type='int',
help='Specify how many SCM commands can run in parallel; ' help='Specify how many SCM commands can run in parallel; '
'default=%default') 'default=%default')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment