diff options
author | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-06 23:28:32 +0000 |
---|---|---|
committer | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-06 23:28:32 +0000 |
commit | 556200fff78b4278f15a2d0bf9bd6ddce926a873 (patch) | |
tree | 69600b1799f94b3287f3aed989db65ce25f964ba /build | |
parent | b5c911a01f9183799cca2b0d8a17732294597086 (diff) | |
download | chromium_src-556200fff78b4278f15a2d0bf9bd6ddce926a873.zip chromium_src-556200fff78b4278f15a2d0bf9bd6ddce926a873.tar.gz chromium_src-556200fff78b4278f15a2d0bf9bd6ddce926a873.tar.bz2 |
Don't download the NaCl toolchain if GYP_DEFINES contains disable_nacl=1
BUG=none
TEST=manual
Review URL: http://codereview.chromium.org/8820022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113279 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rwxr-xr-x | build/download_nacl_toolchains.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/build/download_nacl_toolchains.py b/build/download_nacl_toolchains.py index 580f410..46c7879 100755 --- a/build/download_nacl_toolchains.py +++ b/build/download_nacl_toolchains.py @@ -10,6 +10,9 @@ import sys def Main(args): + # Exit early if disable_nacl=1. + if 'disable_nacl=1' in os.environ.get('GYP_DEFINES', ''): + return 0 # Handle chromeos=1 specially (until its building its own toolchain). if 'chromeos=1' in os.environ.get('GYP_DEFINES', ''): args = [ |