Index: build/vs_toolchain.py |
diff --git a/build/vs_toolchain.py b/build/vs_toolchain.py |
index 6a0e6c95e915775a415cad2db4f9eb5a0f48ffc9..66a3cd8e8640147ffaa07bd930dc3252f99bd45e 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 |