From 4d94cf182f87a8913c2066ff82cff3e85a89016f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Sun, 25 Oct 2026 02:40:07 +0100 Subject: [PATCH] std.hash.crc: fix x86_64 + crc32 feature check The 64bit feature just indicates that the model has long mode support; it does not necessarily mean that we are compiling for 64-bit. --- lib/std/hash/crc.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/hash/crc.zig b/lib/std/hash/crc.zig index 795f6a5f5e..cd6d494a65 100644 --- a/lib/std/hash/crc.zig +++ b/lib/std/hash/crc.zig @@ -786,7 +786,7 @@ pub const @"CRC-32/CKSUM" = Generic(u32, .{ .xor_output = 0xffffffff, }); -pub const @"CRC-32/ISCSI" = if (builtin.cpu.hasAll(.x86, &.{ .@"64bit", .crc32 })) +pub const @"CRC-32/ISCSI" = if (builtin.target.cpu.arch == .x86_64 and builtin.target.cpu.has(.x86, .crc32)) @import("crc/Crc32c.zig") else Generic(u32, .{