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) {
14771477 case OsKFreeBSD:
14781478 case OsNetBSD:
14791479 case OsHurd:
1480 case OsWindows:
14811480 return ZigLLVM_GNU;
14821481 case OsUefi:
1482 case OsWindows:
14831483 return ZigLLVM_MSVC;
14841484 case OsLinux:
14851485 case OsWASI: