[CONC-645] Fix compile errors with Windows clang.exe Created: 2023-05-16 Updated: 2023-09-22 Resolved: 2023-09-22 |
|
| Status: | Closed |
| Project: | MariaDB Connector/C |
| Component/s: | Build |
| Affects Version/s: | None |
| Fix Version/s: | 3.1.23, 3.3.8 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Vladislav Vaintroub | Assignee: | Vladislav Vaintroub |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
| Description |
|
When I try to compile with clang.exe, there are come compile errors. I get the clang.exe from VS2022 distribution. Note : unlike its sibling clang-cl.exe, this compiler does not disguise itself as MSVC, but GCC instead. However, it is still bona-fide Windows compiler, wrt ABI and Windows headers. The only GCC-ism about it is that it accepts the GCC style command parameters. Execute below command in "x64 Native Tool Command Prompt" of VS2022 installation.
It spits out some errors. Apparently, CMake wants to compile mariadb_config which needs A patch is attached. patch.diff |
| Comments |
| Comment by Vladislav Vaintroub [ 2023-05-16 ] |
|
Sorry @Diego, this is obviously Connector/C related, I missed the correct project when creating it. Can you move it there? (I can't on some reason) |
| Comment by Diego Dupin [ 2023-05-16 ] |
|
wlad moved |