authorgravatar for robin@voetter.nlRobin Voetter <robin@voetter.nl> 2019-08-30 13:02:15+02:00
committergravatar for robin@voetter.nlRobin Voetter <robin@voetter.nl> 2019-08-30 13:02:15+02:00
log4b8325f3815c7fa774bb06ef5d190f039723222b
tree50ed2c99684117d74b0f875b7163c656deb398ef
parentc1f8b201a1419e1f86c116c67de2f5a8c58b9a84

Remove unneeded os check


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

std/os/linux/tls.zig+1-1
...@@ -147,7 +147,7 @@ pub fn initTLS() void {...@@ -147,7 +147,7 @@ pub fn initTLS() void {
147 }147 }
148148
149 // If the cpu is arm-based, check if it supports the TLS register149 // 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.