mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Fix find_msvc
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user