From 7ee6dab39fac7aa12fa9fd952bb2bdc28d5eabe8 Mon Sep 17 00:00:00 2001 From: Alex Rønne Petersen Date: Tue, 5 Aug 2025 22:32:35 +0200 Subject: Revert "Sema: Stop adding Windows implib link inputs for `extern "..."` syntax." This reverts commit b461d07a5464aec86c533434dab0b58edfffb331. After some discussion in the team, we've decided that this is too disruptive, especially because the linker errors are less than helpful. That's a fixable problem, so we might reconsider this in the future, but revert it for now. --- src/libs/mingw.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libs') diff --git a/src/libs/mingw.zig b/src/libs/mingw.zig index 1c2927eba0..5603a15a57 100644 --- a/src/libs/mingw.zig +++ b/src/libs/mingw.zig @@ -1012,7 +1012,6 @@ const mingw32_winpthreads_src = [_][]const u8{ "winpthreads" ++ path.sep_str ++ "thread.c", }; -// Note: kernel32 and ntdll are always linked even without targeting MinGW-w64. pub const always_link_libs = [_][]const u8{ "api-ms-win-crt-conio-l1-1-0", "api-ms-win-crt-convert-l1-1-0", @@ -1030,6 +1029,8 @@ pub const always_link_libs = [_][]const u8{ "api-ms-win-crt-time-l1-1-0", "api-ms-win-crt-utility-l1-1-0", "advapi32", + "kernel32", + "ntdll", "shell32", "user32", }; -- cgit v1.2.3