diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2025-08-05 22:32:35 +0200 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2025-08-06 06:15:13 +0200 |
| commit | 7ee6dab39fac7aa12fa9fd952bb2bdc28d5eabe8 (patch) | |
| tree | b97957e62077e78f6bf49836babcdb84b4ff772f /src/libs/mingw.zig | |
| parent | 9a158c1dae531f2a4e5667569bed38c27cbd4d57 (diff) | |
| download | zig-7ee6dab39fac7aa12fa9fd952bb2bdc28d5eabe8.tar.gz zig-7ee6dab39fac7aa12fa9fd952bb2bdc28d5eabe8.zip | |
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.
Diffstat (limited to 'src/libs/mingw.zig')
| -rw-r--r-- | src/libs/mingw.zig | 3 |
1 files changed, 2 insertions, 1 deletions
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", }; |
