diff options
-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() |