From fc67e5f843ae358747bac57f2ae7c816a2ccb4df Mon Sep 17 00:00:00 2001 From: Alexandros Naskos Date: Mon, 9 Nov 2020 20:57:07 +0200 Subject: Windows TLS startup symbols are already provided by libcrt when linking against libc --- lib/std/start.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/start.zig b/lib/std/start.zig index 4e1a9d71d4..8c416e44e2 100644 --- a/lib/std/start.zig +++ b/lib/std/start.zig @@ -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"); } -- cgit v1.2.3