2018-07-12 20:43:10 +02:00
|
|
|
diff --git tools/clang/scripts/update.py tools/clang/scripts/update.py
|
2018-07-24 00:32:02 +02:00
|
|
|
index f69d2eb8915b..04d97b47dbe9 100755
|
2018-07-12 20:43:10 +02:00
|
|
|
--- tools/clang/scripts/update.py
|
|
|
|
+++ tools/clang/scripts/update.py
|
|
|
|
@@ -392,7 +392,10 @@ def GetWinSDKDir():
|
|
|
|
if bool(int(os.environ.get('DEPOT_TOOLS_WIN_TOOLCHAIN', '1'))):
|
|
|
|
dia_path = os.path.join(win_sdk_dir, '..', 'DIA SDK', 'bin', 'amd64')
|
|
|
|
else:
|
|
|
|
- vs_path = vs_toolchain.DetectVisualStudioPath()
|
|
|
|
+ if 'GYP_MSVS_OVERRIDE_PATH' not in os.environ:
|
|
|
|
+ vs_path = vs_toolchain.DetectVisualStudioPath()
|
|
|
|
+ else:
|
|
|
|
+ vs_path = os.environ['GYP_MSVS_OVERRIDE_PATH']
|
|
|
|
dia_path = os.path.join(vs_path, 'DIA SDK', 'bin', 'amd64')
|
|
|
|
|
|
|
|
dia_dll = os.path.join(dia_path, DIA_DLL[msvs_version])
|