| author | |
| committer | |
| log | 95e04e3874dd1284c39182e7909d122ceb1c56c4 |
| tree | 3b5b50113e0aafb30d4bb1d2613affcce83369e0 |
| parent | d64bd30690b042177f084a5c17166777b953dd27 |
| signature |
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: #29111 files changed, 1 insertions(+), 1 deletions(-)
src/target.cpp+1-1| ... | @@ -1477,9 +1477,9 @@ ZigLLVM_EnvironmentType target_default_abi(ZigLLVM_ArchType arch, Os os) { | ... | @@ -1477,9 +1477,9 @@ ZigLLVM_EnvironmentType target_default_abi(ZigLLVM_ArchType arch, Os os) { |
| 1477 | case OsKFreeBSD: | 1477 | case OsKFreeBSD: |
| 1478 | case OsNetBSD: | 1478 | case OsNetBSD: |
| 1479 | case OsHurd: | 1479 | case OsHurd: |
| 1480 | case OsWindows: | ||
| 1481 | return ZigLLVM_GNU; | 1480 | return ZigLLVM_GNU; |
| 1482 | case OsUefi: | 1481 | case OsUefi: |
| 1482 | case OsWindows: | ||
| 1483 | return ZigLLVM_MSVC; | 1483 | return ZigLLVM_MSVC; |
| 1484 | case OsLinux: | 1484 | case OsLinux: |
| 1485 | case OsWASI: | 1485 | case OsWASI: |