authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-07-17 12:40:48-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-07-17 12:40:48-04:00
log95e04e3874dd1284c39182e7909d122ceb1c56c4
tree3b5b50113e0aafb30d4bb1d2613affcce83369e0
parentd64bd30690b042177f084a5c17166777b953dd27
signaturelock-open Commit is signed but in an unrecognized format.

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/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: