From 62929d599c3e2f99b1732e7c521e1771621520e9 Mon Sep 17 00:00:00 2001 From: Elaine Gibson Date: Thu, 21 Mar 2024 10:05:25 +0000 Subject: [PATCH] mingw: link to api sets instead of ucrtbase --- src/mingw.zig | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/mingw.zig b/src/mingw.zig index ce15af3267..b711ad7515 100644 --- a/src/mingw.zig +++ b/src/mingw.zig @@ -915,7 +915,21 @@ const mingwex_arm64_src = [_][]const u8{ }; pub const always_link_libs = [_][]const u8{ - "ucrtbase", + "api-ms-win-crt-conio-l1-1-0", + "api-ms-win-crt-convert-l1-1-0", + "api-ms-win-crt-environment-l1-1-0", + "api-ms-win-crt-filesystem-l1-1-0", + "api-ms-win-crt-heap-l1-1-0", + "api-ms-win-crt-locale-l1-1-0", + "api-ms-win-crt-math-l1-1-0", + "api-ms-win-crt-multibyte-l1-1-0", + "api-ms-win-crt-private-l1-1-0", + "api-ms-win-crt-process-l1-1-0", + "api-ms-win-crt-runtime-l1-1-0", + "api-ms-win-crt-stdio-l1-1-0", + "api-ms-win-crt-string-l1-1-0", + "api-ms-win-crt-time-l1-1-0", + "api-ms-win-crt-utility-l1-1-0", "advapi32", "kernel32", "ntdll",