Commit 4b8325f381

Robin Voetter <robin@voetter.nl>
2019-08-30 13:02:15
Remove unneeded os check
1 parent c1f8b20
Changed files (1)
std
os
linux
std/os/linux/tls.zig
@@ -147,7 +147,7 @@ pub fn initTLS() void {
     }
 
     // If the cpu is arm-based, check if it supports the TLS register
-    if (builtin.arch == builtin.Arch.arm and builtin.os == .linux) {
+    if (builtin.arch == builtin.Arch.arm) {
         if (at_hwcap & std.os.linux.HWCAP_TLS == 0) {
             // If the CPU does not support TLS via a coprocessor register,
             // a kernel helper function can be used instead on certain linux kernels.