Skip to content

Instantly share code, notes, and snippets.

@wohali
Created November 12, 2021 16:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wohali/304db8e9ae2a97b562eb7c0c95e86388 to your computer and use it in GitHub Desktop.
Save wohali/304db8e9ae2a97b562eb7c0c95e86388 to your computer and use it in GitHub Desktop.
diff --git a/build/moz.configure/toolchain.configure b/build/moz.configure/toolchain.configure
index 9c772a8b7594..9b7ced38daad 100755
--- a/build/moz.configure/toolchain.configure
+++ b/build/moz.configure/toolchain.configure
@@ -582,7 +582,7 @@ def get_vc_paths(topsrcdir):
'x86': [os.path.join(path, r'VC\bin\amd64_x86'), os.path.join(path, r'VC\bin\amd64')],
})
# Then VS2017 and newer.
- for install in vswhere(['-requires', 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64']):
+ for install in vswhere(['-requires', 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64', '-products', '*']):
path = install['installationPath']
tools_version = open(os.path.join(
path, r'VC\Auxiliary\Build\Microsoft.VCToolsVersion.default.txt'), 'rb').read().strip()
diff --git a/build/win32/vswhere.exe b/build/win32/vswhere.exe
index 80706d852e57..1731aa6ed279 100644
Binary files a/build/win32/vswhere.exe and b/build/win32/vswhere.exe differ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment