Commit fc93ab7182

Alex Rønne Petersen <alex@alexrp.com>
2024-08-08 22:26:55
std.Target: Fix isGnuLibC() to handle hurd too.
1 parent 0def4e0
Changed files (1)
lib
lib/std/Target.zig
@@ -144,7 +144,7 @@ pub const Os = struct {
         }
 
         pub inline fn isGnuLibC(tag: Os.Tag, abi: Abi) bool {
-            return tag == .linux and abi.isGnu();
+            return (tag == .hurd or tag == .linux) and abi.isGnu();
         }
 
         pub fn defaultVersionRange(tag: Tag, arch: Cpu.Arch) Os {