summaryrefslogtreecommitdiffstats
path: root/native_client_sdk
diff options
context:
space:
mode:
authorolonho@chromium.org <olonho@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-26 22:50:48 +0000
committerolonho@chromium.org <olonho@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-26 22:50:48 +0000
commitbbe41d282b08e8992f2c5e736f4f43c1ed10eb29 (patch)
tree68f7abb836d49b43df67e54af7c8bcffab4a9bbb /native_client_sdk
parentd865e7c0777eb66415e12e79d19116cce7b491b2 (diff)
downloadchromium_src-bbe41d282b08e8992f2c5e736f4f43c1ed10eb29.zip
chromium_src-bbe41d282b08e8992f2c5e736f4f43c1ed10eb29.tar.gz
chromium_src-bbe41d282b08e8992f2c5e736f4f43c1ed10eb29.tar.bz2
Fix Mono/NaCl buildbot redness.
BUG=None TEST=local build Review URL: https://chromiumcodereview.appspot.com/13872024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196865 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'native_client_sdk')
-rwxr-xr-xnative_client_sdk/src/build_tools/nacl-mono-builder.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/native_client_sdk/src/build_tools/nacl-mono-builder.py b/native_client_sdk/src/build_tools/nacl-mono-builder.py
index e6fece3..fdab810 100755
--- a/native_client_sdk/src/build_tools/nacl-mono-builder.py
+++ b/native_client_sdk/src/build_tools/nacl-mono-builder.py
@@ -87,12 +87,19 @@ def main(args):
git_url = 'git://github.com/elijahtaylor/mono.git'
git_rev = 'HEAD'
if buildbot_revision:
- # Unfortunately, we use different git revisions for ARM and x86 now,
- # so ignore buildbot_revision variable for ARM.
+ # Unfortunately, we use different git branches/revisions
+ # for ARM and x86 now, so ignore buildbot_revision variable for ARM.
# Need to rethink this approach, if we'll plan to support
# more flexible repo selection mechanism.
if options.arch != 'arm':
git_rev = buildbot_revision.split(':')[1]
+ # ARM and x86 is built out of different git trees, so distinguish
+ # them by appending the arch. It also makes 32 and 64 bit x86 separated,
+ # which is good.
+ # TODO(olonho): maybe we need to avoid modifications of global.
+ global MONO_DIR
+ tag = options.arch
+ MONO_DIR = "%s-%s" % (MONO_DIR, tag)
if not os.path.exists(MONO_DIR):
buildbot_common.MakeDir(MONO_DIR)
buildbot_common.Run(['git', 'clone', git_url, MONO_DIR])