php / php-sdk-binary-tools

Tool kit for building PHP under Windows
BSD 2-Clause "Simplified" License
80 stars 32 forks source link

About Visual C++ target version #6

Closed youkidearitai closed 1 week ago

youkidearitai commented 10 months ago

Do you intend to support Visual C++ 2022 (or later)?

bryan-chenpcm commented 7 months ago

Visual C++ 2022 is supported, it uses vs17 I believe. I saw a commit supporting it.

BraisedFish commented 7 months ago

Invoke phpsdk-vc14-x64.bat will find the vs dir, but the condition of vs version is [16,17), so couldn't find the vs dir. it will faild.

D:\var\source\php-sdk-binary-tools-php-sdk-2.2.0\bin\vswhere -nologo -version "[16,17)" -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath -format text D:\var\source\php-sdk-binary-tools-php-sdk-2.2.0\bin\vswhere -nologo -version "[16,17)" -products Microsoft.VisualStudio.Product.BuildTools -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath -format text D:\var\source\php-sdk-binary-tools-php-sdk-2.2.0\bin\vswhere -nologo -version "[16,17)" -prerelease -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath -format text

cmb69 commented 1 week ago

Indeed, Visual Studio 2022 (aka. vs17) is supported as of cc7c11adad5f962f571130cad61f0de2cc071ad7. Just invoke phpsdk_vs17-x64.bat to keep going.