authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-07-30 04:36:43+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-07-30 06:30:26+02:00
log62a01851d9c433ea3f2e98cc986e75d32aece443
tree06d868f70917e2365060e1208bbc101caec02cc5
parentc377316420be53f5db36f2fd2848d2abbfe34007
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

glibc: Add a temporary hack in abilists loading due to sparcel removal.

Revert this commit on the next glibc abilists update.

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

src/glibc.zig+11
...@@ -122,6 +122,17 @@ pub fn loadMetaData(gpa: Allocator, contents: []const u8) LoadMetaDataError!*ABI...@@ -122,6 +122,17 @@ pub fn loadMetaData(gpa: Allocator, contents: []const u8) LoadMetaDataError!*ABI
122 return error.ZigInstallationCorrupt;122 return error.ZigInstallationCorrupt;
123 };123 };
124 const arch_tag = std.meta.stringToEnum(std.Target.Cpu.Arch, arch_name) orelse {124 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
125 log.err("abilists: unrecognized arch: '{s}'", .{arch_name});136 log.err("abilists: unrecognized arch: '{s}'", .{arch_name});
126 return error.ZigInstallationCorrupt;137 return error.ZigInstallationCorrupt;
127 };138 };