commit 4b8325f3815c7fa774bb06ef5d190f039723222b (tree)
parent c1f8b201a1419e1f86c116c67de2f5a8c58b9a84
Author: Robin Voetter <robin@voetter.nl>
Date: Fri, 30 Aug 2019 13:02:15 +0200
Remove unneeded os check
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/std/os/linux/tls.zig b/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.