From 2fa258a0666aaa77dd3b88c16936d5ad091bad2a Mon Sep 17 00:00:00 2001 From: pekochan069 Date: Thu, 9 Jan 2025 11:44:26 +0900 Subject: [PATCH] Change vswhere command to find to find msvc toolchain correctly --- src/utils/find_msvc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/find_msvc.c b/src/utils/find_msvc.c index 975d72155..c990989f2 100644 --- a/src/utils/find_msvc.c +++ b/src/utils/find_msvc.c @@ -34,7 +34,7 @@ static char *find_visual_studio(void) // Let's locate vswhere.exe char *path = win_utf16to8(_wgetenv(L"ProgramFiles(x86)")); scratch_buffer_clear(); - scratch_buffer_printf("\"%s\\Microsoft Visual Studio\\Installer\\vswhere.exe\" -latest -prerelease -property installationPath", path); + scratch_buffer_printf("\"%s\\Microsoft Visual Studio\\Installer\\vswhere.exe\" -latest -prerelease -property installationPath -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -products *", path); const char *install_path = NULL; // Call vswhere.exe