Skip to content

Commit 2d11723

Browse files
authored
Improved MSVC detection fixes #929
1 parent be92da8 commit 2d11723

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

windows/org.eclipse.cdt.msw.build/src/org/eclipse/cdt/internal/msw/build/VSInstallationRegistry.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ private static VSInstallation detectVSInstallation(VSVersionNumber baseVersion)
4949
String versionFilterRange = "[" + baseVersion.toString() + "," + upperBound + ")"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
5050
String vsInstallationLocation[] = ProcessOutputUtil.getAllOutputFromCommand("cmd", "/c", //$NON-NLS-1$//$NON-NLS-2$
5151
"\"\"%ProgramFiles(x86)%\\Microsoft Visual Studio\\Installer\\vswhere.exe\"\"", //$NON-NLS-1$
52+
"-products", "*", "-requires", "Microsoft.VisualStudio.Component.VC.Tools.x86.x64", //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
5253
"-version", versionFilterRange, "-property", "installationPath"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
5354
if (vsInstallationLocation == null || vsInstallationLocation.length == 0
5455
|| vsInstallationLocation[0].isEmpty()) {

0 commit comments

Comments
 (0)