aboutsummaryrefslogtreecommitdiff
path: root/base/runtime/core_builtin.odin
diff options
context:
space:
mode:
authorJon Lipstate <jon@lipstate.com>2025-08-29 12:41:38 -0700
committerJon Lipstate <jon@lipstate.com>2025-08-29 12:41:38 -0700
commit231ce2da59cd93b4e8d8a90daca2d2111fc3ecf8 (patch)
tree53a7fd84f67213318f659f02b4d03d6f7acdac45 /base/runtime/core_builtin.odin
parentf926c1861f5346d23b1b60f6b5970f598d3584b3 (diff)
windows i386 support
Diffstat (limited to 'base/runtime/core_builtin.odin')
-rw-r--r--base/runtime/core_builtin.odin7
1 files changed, 6 insertions, 1 deletions
diff --git a/base/runtime/core_builtin.odin b/base/runtime/core_builtin.odin
index 3a51d71fb..33b600c3e 100644
--- a/base/runtime/core_builtin.odin
+++ b/base/runtime/core_builtin.odin
@@ -54,7 +54,12 @@ container_of :: #force_inline proc "contextless" (ptr: $P/^$Field_Type, $T: type
when !NO_DEFAULT_TEMP_ALLOCATOR {
- @thread_local global_default_temp_allocator_data: Default_Temp_Allocator
+ when ODIN_ARCH == .i386 && ODIN_OS == .Windows {
+ // Thread-local storage is problematic on Windows i386
+ global_default_temp_allocator_data: Default_Temp_Allocator
+ } else {
+ @thread_local global_default_temp_allocator_data: Default_Temp_Allocator
+ }
}
@(builtin, disabled=NO_DEFAULT_TEMP_ALLOCATOR)