std.Target: Return the correct value for elfiamcu in toElfMachine().

This commit is contained in:
Alex Rønne Petersen 2024-08-09 21:40:02 +02:00
parent 550438653d
commit 9b5c992d31
No known key found for this signature in database

View File

@ -836,7 +836,8 @@ pub const ObjectFormat = enum {
};
pub fn toElfMachine(target: Target) std.elf.EM {
// TODO: Return IAMCU for elfiamcu OS.
if (target.os.tag == .elfiamcu) return .IAMCU;
return switch (target.cpu.arch) {
.amdgcn => .AMDGPU,
.arc => .ARC_COMPACT2,