Index: build/vs_toolchain.py |
diff --git a/build/vs_toolchain.py b/build/vs_toolchain.py |
index b039ed01c6493d6ba62f9c8ff2e09786fbc44b5a..735827e94316f4125b42d41ed389719955050612 100644 |
--- a/build/vs_toolchain.py |
+++ b/build/vs_toolchain.py |
@@ -30,6 +30,8 @@ def SetEnvironmentAndGetRuntimeDllDirs(): |
depot_tools_win_toolchain = \ |
bool(int(os.environ.get('DEPOT_TOOLS_WIN_TOOLCHAIN', '1'))) |
if sys.platform in ('win32', 'cygwin') and depot_tools_win_toolchain: |
+ if not os.path.exists(json_data_file): |
+ Update() |
with open(json_data_file, 'r') as tempf: |
toolchain_data = json.load(tempf) |