commit fc93ab7182662bad6826b827e8bcf034fc90c3f8 (tree)
parent 0def4e0db0a7000739a0bd409c51de377ce7b693
Author: Alex Rønne Petersen <alex@alexrp.com>
Date: Thu, 8 Aug 2024 22:26:55 +0200
std.Target: Fix isGnuLibC() to handle hurd too.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/std/Target.zig b/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 {