mirror of
https://github.com/ziglang/zig.git
synced 2026-01-21 06:45:24 +00:00
std.Target: Return the correct value for elfiamcu in toElfMachine().
This commit is contained in:
parent
550438653d
commit
9b5c992d31
@ -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…
x
Reference in New Issue
Block a user