[php-src] PR #15425: Fix ZEND_FASTCALL definition wrt. x64 Windows clang builds
| From: | cmb69 | Date: | Thu, 15 Aug 2024 13:11:10 +0000 |
| Subject: | [php-src] PR #15425: Fix ZEND_FASTCALL definition wrt. x64 Windows clang builds | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-27977@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/15425
Author: cmb69
As is, MSVC uses
__vectorcall, but clang uses __cdecl. This obviously is
bad for interoperability (and causes link issues), and is likely worse for FFI which offers some
limited (but likely sufficient for our purposes) support for __vectorcall on Windows.
Since clang claims to support __vectorcall as of 3.6.0, and we bumped the requirements
to clang 4.0.0 already, there shouldn't be any issues.
---
I've did a minimal x64 clang 4.0.0 build on Windows (configure --disable-all --enable-cli
--with-toolset=clang) and didn't notice any issues (tests/ where running fine, and the
function names where mangled appropriately).
For some more details see also https://github.com/php/php-src/pull/15415#issuecomment-2291173915.