Add vs 18 support

This commit is contained in:
crazywhalecc
2026-06-16 19:21:18 +08:00
parent bdc7bbe1f1
commit 127fb1989f
7 changed files with 22 additions and 4 deletions

View File

@@ -21,6 +21,7 @@ class mpir
{
$ver = WindowsUtil::findVisualStudio();
$vs_ver_dir = match ($ver['major_version']) {
'18', // VS 2026 reuses the build.vc17 solution, which msbuild builds via forward compatibility.
'17' => '\build.vc17',
'16' => '\build.vc16',
default => throw new EnvironmentException("Current VS version {$ver['major_version']} is not supported yet!"),