diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2024-07-30 04:36:43 +0200 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2024-07-30 06:30:26 +0200 |
| commit | 62a01851d9c433ea3f2e98cc986e75d32aece443 (patch) | |
| tree | 06d868f70917e2365060e1208bbc101caec02cc5 /src/glibc.zig | |
| parent | c377316420be53f5db36f2fd2848d2abbfe34007 (diff) | |
| download | zig-62a01851d9c433ea3f2e98cc986e75d32aece443.tar.gz zig-62a01851d9c433ea3f2e98cc986e75d32aece443.zip | |
glibc: Add a temporary hack in abilists loading due to sparcel removal.
Revert this commit on the next glibc abilists update.
Diffstat (limited to 'src/glibc.zig')
| -rw-r--r-- | src/glibc.zig | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/glibc.zig b/src/glibc.zig index 5214d0a977..85f1828ad4 100644 --- a/src/glibc.zig +++ b/src/glibc.zig @@ -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; }; |
