Fix undefined GYP_MSVS_VERSION failure for non-googlers

This CL adds the missing GYP_MSVS_VERSION environment variable. Without
the patch the following error happen when a non-googler runs
gyp_chromium in Windows.

  File "E:\chromium\src\tools\gyp\pylib\gyp\MSVSVersion.py", line 430, in SelectVisualStudioVersion
    raise ValueError('GYP_MSVS_OVERRIDE_PATH requires GYP_MSVS_VERSION to be '
ValueError: GYP_MSVS_OVERRIDE_PATH requires GYP_MSVS_VERSION to be set to a particular version (e.g. 2010e).

The discussion is found here:
https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/XWZ3hZW8Lco

BUG=460462

Review URL: https://codereview.chromium.org/1593313002

Cr-Original-Commit-Position: refs/heads/master@{#370065}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 833a437f479bdd1653b0eff8fb5e75883df7ae88
This commit is contained in:
lwchkg 2016-01-18 16:39:08 -08:00 коммит произвёл Commit bot
Родитель 9249665d0c
Коммит 076acf686f
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -71,6 +71,8 @@ def SetEnvironmentAndGetRuntimeDllDirs():
elif sys.platform == 'win32' and not depot_tools_win_toolchain:
if not 'GYP_MSVS_OVERRIDE_PATH' in os.environ:
os.environ['GYP_MSVS_OVERRIDE_PATH'] = DetectVisualStudioPath()
if not 'GYP_MSVS_VERSION' in os.environ:
os.environ['GYP_MSVS_VERSION'] = GetVisualStudioVersion()
return vs_runtime_dll_dirs