authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-08-08 22:26:55+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-08-15 10:55:45+02:00
logfc93ab7182662bad6826b827e8bcf034fc90c3f8
treeda5825f42ef16de029a4cbe0e304507515dd6457
parent0def4e0db0a7000739a0bd409c51de377ce7b693
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

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


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

lib/std/Target.zig+1-1
...@@ -144,7 +144,7 @@ pub const Os = struct {...@@ -144,7 +144,7 @@ pub const Os = struct {
144 }144 }
145145
146 pub inline fn isGnuLibC(tag: Os.Tag, abi: Abi) bool {146 pub inline fn isGnuLibC(tag: Os.Tag, abi: Abi) bool {
147 return tag == .linux and abi.isGnu();147 return (tag == .hurd or tag == .linux) and abi.isGnu();
148 }148 }
149149
150 pub fn defaultVersionRange(tag: Tag, arch: Cpu.Arch) Os {150 pub fn defaultVersionRange(tag: Tag, arch: Cpu.Arch) Os {