add tls when we have crt

This commit is contained in:
Jon Lipstate
2025-09-03 22:32:33 -07:00
parent 231ce2da59
commit e0c4c53362
3 changed files with 7 additions and 6 deletions
+2 -2
View File
@@ -24,8 +24,8 @@ import "core:terminal/ansi"
@(private="file") stop_test_passed: libc.sig_atomic_t
@(private="file") stop_test_alert: libc.sig_atomic_t
when ODIN_ARCH == .i386 && ODIN_OS == .Windows {
// Thread-local storage is problematic on Windows i386
when ODIN_ARCH == .i386 && ODIN_OS == .Windows && ODIN_NO_CRT {
// Thread-local storage doesn't work on Windows i386 without CRT
@(private="file")
local_test_index: libc.sig_atomic_t
@(private="file")