Windows TLS startup symbols are already provided by libcrt when linking against libc

This commit is contained in:
Alexandros Naskos 2020-11-09 20:57:07 +02:00 committed by Andrew Kelley
parent 0bc9fd5e8e
commit fc67e5f843

View File

@ -54,7 +54,7 @@ fn _DllMainCRTStartup(
fdwReason: std.os.windows.DWORD,
lpReserved: std.os.windows.LPVOID,
) callconv(.Stdcall) std.os.windows.BOOL {
if (!builtin.single_threaded) {
if (!builtin.single_threaded and !builtin.link_libc) {
_ = @import("start_windows_tls.zig");
}