From 609207801a570508e58d9e02b6ce551fbf1dca30 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 23 May 2021 16:01:41 -0700 Subject: make "gnu" (mingw-w64) the default C ABI on Windows Closes #6565 --- src/Compilation.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Compilation.zig') diff --git a/src/Compilation.zig b/src/Compilation.zig index 9ac8dfcc41..405066331f 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -3164,7 +3164,7 @@ fn detectLibCIncludeDirs( // If linking system libraries and targeting the native abi, default to // using the system libc installation. - if (link_system_libs and is_native_abi) { + if (link_system_libs and is_native_abi and !target.isMinGW()) { const libc = try arena.create(LibCInstallation); libc.* = try LibCInstallation.findNative(.{ .allocator = arena, .verbose = true }); return detectLibCFromLibCInstallation(arena, target, libc); -- cgit v1.2.3