| ... | @@ -147,7 +147,7 @@ pub fn initTLS() void { | ... | @@ -147,7 +147,7 @@ pub fn initTLS() void { |
| 147 | } | 147 | } |
| 148 | | 148 | |
| 149 | // If the cpu is arm-based, check if it supports the TLS register | 149 | // If the cpu is arm-based, check if it supports the TLS register |
| 150 | if (builtin.arch == builtin.Arch.arm and builtin.os == .linux) { | 150 | if (builtin.arch == builtin.Arch.arm) { |
| 151 | if (at_hwcap & std.os.linux.HWCAP_TLS == 0) { | 151 | if (at_hwcap & std.os.linux.HWCAP_TLS == 0) { |
| 152 | // If the CPU does not support TLS via a coprocessor register, | 152 | // If the CPU does not support TLS via a coprocessor register, |
| 153 | // a kernel helper function can be used instead on certain linux kernels. | 153 | // a kernel helper function can be used instead on certain linux kernels. |