# std: Add elf.EM, coff.MachineType to Target.CPU.Arch conversions · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/9bb19a090ea1d1d47b214974d5e18e11ef4adb85)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 9bb19a090ea1d1d47b214974d5e18e11ef4adb85

Requested commit: 9bb19a090ea1d1d47b214974d5e18e11ef4adb85

Commit: 9bb19a090ea1d1d47b214974d5e18e11ef4adb85

Tree: bc1d9837eeb21afdb0a80ae355e671ad54b8151a

Author: Tom Maenan Read Cutting

Committer: Andrew Kelley

## Message

```
std: Add elf.EM, coff.MachineType to Target.CPU.Arch conversions

target.Arch already supports finding the correct encoding for either
target, so being able to do the inverse has use cases for when parsing
files of an unknown target (i.e. for zar).

```

## Parents

- [c64279b15b527749420e0e79fcc6dbfbfeb02812](https://git.cafe/gitcafe/zig/commit/c64279b15b527749420e0e79fcc6dbfbfeb02812?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/9bb19a090ea1d1d47b214974d5e18e11ef4adb85?format=markdown)
