aboutsummaryrefslogtreecommitdiff
path: root/lib/std/start.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-03-20 18:33:36 -0400
committerAndrew Kelley <andrew@ziglang.org>2020-03-20 18:33:36 -0400
commit3a2c4908891cdc9f64f0e94eb570ce084f8bc57c (patch)
tree406893c5de91823ce9da9191d5723e6a0df68e1c /lib/std/start.zig
parent8429ddecf89bf0e78b2e0143e9a4a6e7ba88a0fb (diff)
downloadzig-3a2c4908891cdc9f64f0e94eb570ce084f8bc57c.tar.gz
zig-3a2c4908891cdc9f64f0e94eb570ce084f8bc57c.zip
"generate .h files" feature is no longer supported in stage1
Diffstat (limited to 'lib/std/start.zig')
-rw-r--r--lib/std/start.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/std/start.zig b/lib/std/start.zig
index 857af03b56..1a4997edbd 100644
--- a/lib/std/start.zig
+++ b/lib/std/start.zig
@@ -41,6 +41,10 @@ fn _DllMainCRTStartup(
fdwReason: std.os.windows.DWORD,
lpReserved: std.os.windows.LPVOID,
) callconv(.Stdcall) std.os.windows.BOOL {
+ if (!builtin.single_threaded) {
+ _ = @import("start_windows_tls.zig");
+ }
+
if (@hasDecl(root, "DllMain")) {
return root.DllMain(hinstDLL, fdwReason, lpReserved);
}