Only download the VS toolchain if DEPOT_TOOLS_WIN_TOOLCHAIN=1.

BUG=b/13171670
R=fbarchard@google.com, kjellander@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/15409004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@5999 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
andrew@webrtc.org 2014-04-28 15:46:32 +00:00
parent de1429e9ad
commit 1152fe2247

View File

@ -61,7 +61,9 @@ if __name__ == '__main__':
if not os.environ.get('GYP_GENERATORS'):
os.environ['GYP_GENERATORS'] = 'ninja'
vs2013_runtime_dll_dirs = vs_toolchain.DownloadVsToolchain()
vs2013_runtime_dll_dirs = None
if int(os.environ.get('DEPOT_TOOLS_WIN_TOOLCHAIN', '1')):
vs2013_runtime_dll_dirs = vs_toolchain.DownloadVsToolchain()
# Enforce gyp syntax checking. This adds about 20% execution time.
args.append('--check')