| ... | @@ -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 | }; |