diff options
author | rsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-26 18:40:49 +0000 |
---|---|---|
committer | rsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-26 18:40:49 +0000 |
commit | 06f418ee65f5969c36765544511a81009bf7b07f (patch) | |
tree | 0a4ffde7ac2c6f7352baa94d2333efa96f322ffa /build/gyp_chromium | |
parent | 304b4a5c92e957f089bf9366445d43f610b25571 (diff) | |
download | chromium_src-06f418ee65f5969c36765544511a81009bf7b07f.zip chromium_src-06f418ee65f5969c36765544511a81009bf7b07f.tar.gz chromium_src-06f418ee65f5969c36765544511a81009bf7b07f.tar.bz2 |
In build/gyp_chromium, if CHROMIUM_GYP_SYNTAX_CHECK is set to 1, run gyp with --check.
This is to eventually run gyp with syntax checking enabled on the buildbots.
Enabling that will come in a later CL after all gyp errors are fixed.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/1435001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42788 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/gyp_chromium')
-rwxr-xr-x | build/gyp_chromium | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/build/gyp_chromium b/build/gyp_chromium index c955e39..9c87e82 100755 --- a/build/gyp_chromium +++ b/build/gyp_chromium @@ -82,6 +82,12 @@ if __name__ == '__main__': if sys.platform != 'darwin': args.append('--no-circular-check') + # If CHROMIUM_GYP_SYNTAX_CHECK is set to 1, it will invoke gyp with --check + # to enfore syntax checking. + syntax_check = os.environ.get('CHROMIUM_GYP_SYNTAX_CHECK') + if syntax_check and int(syntax_check): + args.append('--check') + print 'Updating projects from gyp files...' sys.stdout.flush() |