mirror of
https://github.com/ziglang/zig.git
synced 2026-02-07 23:17:17 +00:00
glibc: Add a temporary hack in abilists loading due to sparcel removal.
Revert this commit on the next glibc abilists update.
This commit is contained in:
parent
c377316420
commit
62a01851d9
@ -122,6 +122,17 @@ pub fn loadMetaData(gpa: Allocator, contents: []const u8) LoadMetaDataError!*ABI
|
||||
return error.ZigInstallationCorrupt;
|
||||
};
|
||||
const arch_tag = std.meta.stringToEnum(std.Target.Cpu.Arch, arch_name) orelse {
|
||||
// TODO: Remove this on the next glibc abilists update.
|
||||
if (mem.eql(u8, arch_name, "sparcel")) {
|
||||
targets[i] = .{
|
||||
.arch = .sparc,
|
||||
.os = .linux,
|
||||
.abi = .gnu,
|
||||
};
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
log.err("abilists: unrecognized arch: '{s}'", .{arch_name});
|
||||
return error.ZigInstallationCorrupt;
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user