[php-src] PR #11313: Fix Clang configuration in the Windows build system
| From: | dktapps | Date: | Wed, 24 May 2023 15:41:37 +0000 |
| Subject: | [php-src] PR #11313: Fix Clang configuration in the Windows build system | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-22585@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/11313
Author: dktapps
I had various other issues and haven't had a successful compilation yet, but this at least
allows attempting to use clang 12 with VS 2019 to build PHP.
lld-link must be used alongside clang-cl since clang-cl mangles symbols differently to cl.
The output of
clang-cl -v now looks like this:
```
clang version 12.0.0
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\Llvm\x64\bin
```