diff options
author | noelallen@chromium.org <noelallen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-08 02:28:51 +0000 |
---|---|---|
committer | noelallen@chromium.org <noelallen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-08 02:28:51 +0000 |
commit | a95c58716a28c616c2cf80f1d87c6f6cf8f23c93 (patch) | |
tree | 2030de22def76e3d3e6c1d2cf262813ddb034050 /build/download_nacl_toolchains.py | |
parent | 2f109dbaf81360bbcfba8a83dca670eafd8ceab1 (diff) | |
download | chromium_src-a95c58716a28c616c2cf80f1d87c6f6cf8f23c93.zip chromium_src-a95c58716a28c616c2cf80f1d87c6f6cf8f23c93.tar.gz chromium_src-a95c58716a28c616c2cf80f1d87c6f6cf8f23c93.tar.bz2 |
Support optional PNaCl download by bots.
Adds and optional download for bots triggered by environment variable.
This download will only happen on SDK bots until we switch to PNaCl.
BUG= 112929
Review URL: http://codereview.chromium.org/9323023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120918 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/download_nacl_toolchains.py')
-rwxr-xr-x | build/download_nacl_toolchains.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/build/download_nacl_toolchains.py b/build/download_nacl_toolchains.py index 6330cf4..4f897d8 100755 --- a/build/download_nacl_toolchains.py +++ b/build/download_nacl_toolchains.py @@ -25,9 +25,24 @@ def Main(args): sys.exit(0) sys.path.insert(0, nacl_build_dir) import download_toolchains + + # TODO (robertm): Finish getting PNaCl ready for prime time. + # BUG: + # We remove this --optional-pnacl argument, and instead replace it with + # --no-pnacl for most cases. However, if the bot name is the pnacl_sdk + # bot then we will go ahead and download it. This prevents increasing the + # 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': + print '\n*** DOWNLOADING PNACL TOOLCHAIN ***\n' + else: + args.append('--no-pnacl') + download_toolchains.Main(args) return 0 if __name__ == '__main__': sys.exit(Main(sys.argv[1:])) + |