Skip to content

Commit 62a0185

Browse files
committed
glibc: Add a temporary hack in abilists loading due to sparcel removal.
Revert this commit on the next glibc abilists update.
1 parent c377316 commit 62a0185

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/glibc.zig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,17 @@ pub fn loadMetaData(gpa: Allocator, contents: []const u8) LoadMetaDataError!*ABI
122122
return error.ZigInstallationCorrupt;
123123
};
124124
const arch_tag = std.meta.stringToEnum(std.Target.Cpu.Arch, arch_name) orelse {
125+
// TODO: Remove this on the next glibc abilists update.
126+
if (mem.eql(u8, arch_name, "sparcel")) {
127+
targets[i] = .{
128+
.arch = .sparc,
129+
.os = .linux,
130+
.abi = .gnu,
131+
};
132+
133+
continue;
134+
}
135+
125136
log.err("abilists: unrecognized arch: '{s}'", .{arch_name});
126137
return error.ZigInstallationCorrupt;
127138
};

0 commit comments

Comments
 (0)