| ... | @@ -1011,7 +1011,21 @@ const mingw32_winpthreads_src = [_][]const u8{ | ... | @@ -1011,7 +1011,21 @@ const mingw32_winpthreads_src = [_][]const u8{ |
| 1011 | "winpthreads" ++ path.sep_str ++ "thread.c", | 1011 | "winpthreads" ++ path.sep_str ++ "thread.c", |
| 1012 | }; | 1012 | }; |
| 1013 | | 1013 | |
| 1014 | pub const always_link_libs = [_][]const u8{ | 1014 | const always_link_libs = [_][]const u8{ |
| | 1015 | "advapi32", |
| | 1016 | "kernel32", |
| | 1017 | "ntdll", |
| | 1018 | "shell32", |
| | 1019 | "user32", |
| | 1020 | }; |
| | 1021 | |
| | 1022 | // In Debug mode, we link against `ucrtbased.dll` instead of the API set DLLs so that we can get |
| | 1023 | // access to functions like `_CrtDbgReport`. |
| | 1024 | pub const always_link_libs_debug = [_][]const u8{ |
| | 1025 | "ucrtbased", |
| | 1026 | } ++ always_link_libs; |
| | 1027 | |
| | 1028 | pub const always_link_libs_release = [_][]const u8{ |
| 1015 | "api-ms-win-crt-conio-l1-1-0", | 1029 | "api-ms-win-crt-conio-l1-1-0", |
| 1016 | "api-ms-win-crt-convert-l1-1-0", | 1030 | "api-ms-win-crt-convert-l1-1-0", |
| 1017 | "api-ms-win-crt-environment-l1-1-0", | 1031 | "api-ms-win-crt-environment-l1-1-0", |
| ... | @@ -1027,9 +1041,4 @@ pub const always_link_libs = [_][]const u8{ | ... | @@ -1027,9 +1041,4 @@ pub const always_link_libs = [_][]const u8{ |
| 1027 | "api-ms-win-crt-string-l1-1-0", | 1041 | "api-ms-win-crt-string-l1-1-0", |
| 1028 | "api-ms-win-crt-time-l1-1-0", | 1042 | "api-ms-win-crt-time-l1-1-0", |
| 1029 | "api-ms-win-crt-utility-l1-1-0", | 1043 | "api-ms-win-crt-utility-l1-1-0", |
| 1030 | "advapi32", | 1044 | } ++ always_link_libs; |
| 1031 | "kernel32", | | |
| 1032 | "ntdll", | | |
| 1033 | "shell32", | | |
| 1034 | "user32", | | |
| 1035 | }; | | |