> -----Original Message----- > From: Stanislav Malyshev <smalys...@gmail.com> > Sent: Friday, July 13, 2018 8:46 PM > To: Nikita Popov <nikita....@gmail.com>; Dmitry Stogov <dmi...@zend.com> > Cc: PHP internals list <internals@lists.php.net>; der...@derickrethans.nl; > Christoph M. Becker <cmbecke...@gmx.de> > Subject: Re: [PHP-DEV] re2c version(s) > > Hi! > > > On Linux distros on common platforms (Intel/AMD) - sure. But what if > > you need an uncommon platform, or one that does not run Linux? It's > > those platforms where you'd have to build PHP from source (after all, > > PHP is also widely available as a package on Linux distros anyway) and > > adding another hassle of figuring out how to build a third-party tool > > - I don't think it's a good service to the community. > > BTW, looking at re2c source, I don't see any mention of Windows. Does it even > build on Windows? What would be prerequisites for it? I thought Windows is > still > a supported platform? It won't be nice if one couldn't build PHP from source > on > Windows anymore... > The binary SDK has undergone a major revamp in the last couple of years. It's now using the MSYS2 port, which works almost fine and is an active project. Before that, some tools like bison 2.4.1 was used, because there was no way to upgrade it. See https://github.com/Microsoft/php-sdk-binary-tools/tree/master/msys2/usr . I was repeatedly asking systems@ to move this repo to git.php.net, but unfortunately that didn't happen. Anyway, the approach is platform specific and was inspired by how mozbuild does it. One always has the full control on which tool versions are used and bad versions can be omitted.
The binary SDK for Windows currently uses bison 3.0.4 (3.0.5 in staging) and re2c 1.0.3 on all the branches. The exact versions run on AppVeyor and are tested continuously. Also every release is tested individually and snapshots from windows.php.net are tested, too. The binary SDK has all the tools that are needed to build PHP. The sources for Windows zipballs are distributed separately, which has its obvious reasons. Regards Anatol