std.Target: Fix isGnuLibC() to handle hurd too.

This commit is contained in:
Alex Rønne Petersen 2024-08-08 22:26:55 +02:00
parent 0def4e0db0
commit fc93ab7182
No known key found for this signature in database

View File

@ -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 {