diff options
| author | Jon Lipstate <jon@lipstate.com> | 2025-09-03 22:32:33 -0700 |
|---|---|---|
| committer | Jon Lipstate <jon@lipstate.com> | 2025-09-03 22:32:33 -0700 |
| commit | e0c4c5336241cb3106910bec64369888b937132b (patch) | |
| tree | ae56c6d078ae03e6bcfce7f6739cd1812efab428 /base | |
| parent | 231ce2da59cd93b4e8d8a90daca2d2111fc3ecf8 (diff) | |
add tls when we have crt
Diffstat (limited to 'base')
| -rw-r--r-- | base/runtime/core_builtin.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/runtime/core_builtin.odin b/base/runtime/core_builtin.odin index 33b600c3e..7e96c6784 100644 --- a/base/runtime/core_builtin.odin +++ b/base/runtime/core_builtin.odin @@ -54,8 +54,8 @@ container_of :: #force_inline proc "contextless" (ptr: $P/^$Field_Type, $T: type when !NO_DEFAULT_TEMP_ALLOCATOR { - 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 global_default_temp_allocator_data: Default_Temp_Allocator } else { @thread_local global_default_temp_allocator_data: Default_Temp_Allocator |