zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 95e04e3874dd1284c39182e7909d122ceb1c56c4 (tree)
parent d64bd30690b042177f084a5c17166777b953dd27
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Wed, 17 Jul 2019 12:40:48 -0400

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

Diffstat:
Msrc/target.cpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/target.cpp b/src/target.cpp @@ -1477,9 +1477,9 @@ ZigLLVM_EnvironmentType target_default_abi(ZigLLVM_ArchType arch, Os os) { case OsKFreeBSD: case OsNetBSD: case OsHurd: - case OsWindows: return ZigLLVM_GNU; case OsUefi: + case OsWindows: return ZigLLVM_MSVC; case OsLinux: case OsWASI: