summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornoelallen@google.com <noelallen@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-15 18:20:12 +0000
committernoelallen@google.com <noelallen@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-15 18:20:12 +0000
commit01fd70156d7739f2a1c52afab2dd33e13a17d5e5 (patch)
treeb7a348c387de954f442351c16575babf76158624
parent659c5accdd19f1a7003f1dd2783818825e92089c (diff)
downloadchromium_src-01fd70156d7739f2a1c52afab2dd33e13a17d5e5.zip
chromium_src-01fd70156d7739f2a1c52afab2dd33e13a17d5e5.tar.gz
chromium_src-01fd70156d7739f2a1c52afab2dd33e13a17d5e5.tar.bz2
Fix pnacl SDK builder
Change download script to make sure 'pnacl' sdk builder gets toolchain. Change tarball name for pnacl build to avoid collision. For now have pnacl toolchain only build pnacl pieces. This change affects SDK builders not Chrome directly. TBR= sehr@google.com BUG= 11292 Review URL: https://chromiumcodereview.appspot.com/9407014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122113 0039d316-1c4b-4281-b951-d872f2087c98
-rwxr-xr-xbuild/download_nacl_toolchains.py3
-rwxr-xr-xnative_client_sdk/src/build_tools/buildbot_run.py11
2 files changed, 9 insertions, 5 deletions
diff --git a/build/download_nacl_toolchains.py b/build/download_nacl_toolchains.py
index 4f897d8..bf30feb 100755
--- a/build/download_nacl_toolchains.py
+++ b/build/download_nacl_toolchains.py
@@ -34,7 +34,8 @@ def Main(args):
# gclient sync time for developers, or standard Chrome bots.
if '--optional-pnacl' in args:
args.remove('--optional-pnacl')
- if os.environ.get('BUILDBOT_BUILDERNAME', '') == 'linux_pnacl_sdk':
+ buildbot_name = os.environ.get('BUILDBOT_BUILDERNAME', '')
+ if buildbot_name.contains('pnacl') and buildbot_name.contains('sdk'):
print '\n*** DOWNLOADING PNACL TOOLCHAIN ***\n'
else:
args.append('--no-pnacl')
diff --git a/native_client_sdk/src/build_tools/buildbot_run.py b/native_client_sdk/src/build_tools/buildbot_run.py
index 46ccb96..860d68f 100755
--- a/native_client_sdk/src/build_tools/buildbot_run.py
+++ b/native_client_sdk/src/build_tools/buildbot_run.py
@@ -480,10 +480,11 @@ def main(args):
platform = getos.GetPlatform()
arch = 'x86'
- toolchains = ['newlib', 'glibc']
- if options.pnacl:
- toolchains.append('pnacl')
-
+ if not options.pnacl:
+ toolchains = ['newlib', 'glibc']
+ else:
+ toolchains = ['pnacl']
+ print 'Building: ' + ' '.join(toolchains)
skip = options.examples or options.update
skip_examples = skip
@@ -540,6 +541,8 @@ def main(args):
if not skip_tar:
BuildStep('Tar Pepper Bundle')
tarname = 'naclsdk_' + platform + '.bz2'
+ if 'pnacl' in toolchains:
+ tarname = 'p' + tarname
tarfile = os.path.join(OUT_DIR, tarname)
Run([sys.executable, CYGTAR, '-C', OUT_DIR, '-cjf', tarfile,
'pepper_' + pepper_ver], cwd=NACL_DIR)