diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2025-09-18 22:01:14 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-18 22:01:14 +0100 |
| commit | 4d2854f5618c8e6a09bc2ec7bf969eccb01f93c2 (patch) | |
| tree | ece1e00dd4e8f7bbb1098f4cffbed5b232e7f6e2 /core | |
| parent | 9cf69576ab8cb220af5802a04a0aa53dc92046a5 (diff) | |
| parent | 57bc45ae30736a891e4b65c7047a091e53cf60e3 (diff) | |
Merge pull request #5632 from kalsprite/x386
windows i386 support
Diffstat (limited to 'core')
| -rw-r--r-- | core/testing/signal_handler_libc.odin | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/core/testing/signal_handler_libc.odin b/core/testing/signal_handler_libc.odin index 4fc9552ae..961f5c7ce 100644 --- a/core/testing/signal_handler_libc.odin +++ b/core/testing/signal_handler_libc.odin @@ -24,10 +24,18 @@ import "core:terminal/ansi" @(private="file") stop_test_passed: libc.sig_atomic_t @(private="file") stop_test_alert: libc.sig_atomic_t -@(private="file", thread_local) -local_test_index: libc.sig_atomic_t -@(private="file", thread_local) -local_test_index_set: bool +when ODIN_ARCH == .i386 && ODIN_OS == .Windows { + // Thread-local storage is problematic on Windows i386 + @(private="file") + local_test_index: libc.sig_atomic_t + @(private="file") + local_test_index_set: bool +} else { + @(private="file", thread_local) + local_test_index: libc.sig_atomic_t + @(private="file", thread_local) + local_test_index_set: bool +} // Windows does not appear to have a SIGTRAP, so this is defined here, instead // of in the libc package, just so there's no confusion about it being |