Fix find_msvc

This commit is contained in:
Christoffer Lerno
2025-01-21 01:26:55 +01:00
parent c7eb0024c7
commit 772b20c26b
2 changed files with 1 additions and 2 deletions

View File

@@ -288,7 +288,6 @@ AlignSize type_alloca_alignment(Type *type)
return align;
}
void codegen_setup_object_names(Module *module, const char **ir_filename, const char **asm_filename, const char **object_filename)
{
const char *result = module_create_object_file_name(module);

View File

@@ -35,7 +35,7 @@ static char *find_visual_studio(void)
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 -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -products *", path);
const char *install_path = NULL;
char *install_path = NULL;
// Call vswhere.exe
if (!execute_cmd_failable(scratch_buffer_to_string(), &install_path, NULL))