back to msvc as the default C ABI on Windows
Zig provides a libc for the GNU C ABI on Windows, and cannot (at least
yet) provide one for the MSVC C ABI. However when not linking libc,
zig has no problem targeting MSVC as the C ABI. And this should be the
default.
Related: #2911
1 files changed, 1 insertions(+), 1 deletions(-)
src
src/target.cpp+1-1
| ... | ... | @@ -1477,9 +1477,9 @@ ZigLLVM_EnvironmentType target_default_abi(ZigLLVM_ArchType arch, Os os) { |
| 1477 | 1477 | case OsKFreeBSD: |
| 1478 | 1478 | case OsNetBSD: |
| 1479 | 1479 | case OsHurd: |
| 1480 | | case OsWindows: |
| 1481 | 1480 | return ZigLLVM_GNU; |
| 1482 | 1481 | case OsUefi: |
| 1482 | case OsWindows: |
| 1483 | 1483 | return ZigLLVM_MSVC; |
| 1484 | 1484 | case OsLinux: |
| 1485 | 1485 | case OsWASI: |