diff --git a/build/vs_toolchain.py b/build/vs_toolchain.py index 6a0e6c95e9157..66a3cd8e86401 100755 --- a/build/vs_toolchain.py +++ b/build/vs_toolchain.py @@ -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