mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:24:33 +01:00
std.Target: Return the correct value for elfiamcu in toElfMachine().
This commit is contained in:
parent
550438653d
commit
9b5c992d31
1 changed files with 2 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue