mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-19 13:24:51 +08:00
Update src/Package/Target/php/windows.php
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
6d292b4c54
commit
4e841cfc67
@ -181,11 +181,15 @@ trait windows
|
||||
// Fix PHP VS version
|
||||
// get vs version
|
||||
$vc = WindowsUtil::findVisualStudio();
|
||||
$vc_matches = match ($vc['major_version']) {
|
||||
'17' => ['VS17', 'Visual C++ 2022'],
|
||||
'16' => ['VS16', 'Visual C++ 2019'],
|
||||
default => ['unknown', 'unknown'],
|
||||
};
|
||||
if ($vc === false) {
|
||||
$vc_matches = ['unknown', 'unknown'];
|
||||
} else {
|
||||
$vc_matches = match ($vc['major_version']) {
|
||||
'17' => ['VS17', 'Visual C++ 2022'],
|
||||
'16' => ['VS16', 'Visual C++ 2019'],
|
||||
default => ['unknown', 'unknown'],
|
||||
};
|
||||
}
|
||||
// patch php-src/win32/build/confutils.js
|
||||
FileSystem::replaceFileStr(
|
||||
"{$package->getSourceDir()}\\win32\\build\\confutils.js",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user