authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-08-03 19:57:06+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-08-03 20:48:48+02:00
log1d8fca0060ecfe700df7722e6763de94e2bd0b51
treef5cd1edb0cef79e0f91d955096dc77057556113f
parent0f1db901980f9329b3c45c016eb467f083493060
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.os.windows.tls: Only define _tls_array when targeting MSVC.

LLVM does not use it when emitting code for the MinGW ABI.

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/os/windows/tls.zig+1-1
......@@ -9,7 +9,7 @@ export var __xl_a: windows.PIMAGE_TLS_CALLBACK linksection(".CRT$XLA") = null;
99export var __xl_z: windows.PIMAGE_TLS_CALLBACK linksection(".CRT$XLZ") = null;
1010
1111comptime {
12 if (builtin.target.cpu.arch == .x86 and builtin.zig_backend != .stage2_c) {
12 if (builtin.cpu.arch == .x86 and builtin.abi == .msvc and builtin.zig_backend != .stage2_c) {
1313 // The __tls_array is the offset of the ThreadLocalStoragePointer field
1414 // in the TEB block whose base address held in the %fs segment.
1515 asm (