Skip to content

Add ARM64 as valid target machine #3792

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions docs/build/reference/machine-specify-target-platform.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
---
description: "Learn more about: /MACHINE (Specify Target Platform)"
title: "/MACHINE (Specify Target Platform)"
ms.date: "11/04/2016"
ms.date: 03/25/2022
f1_keywords: ["VC.Project.VCLinkerTool.TargetMachine", "/machine"]
helpviewer_keywords: ["mapfiles, creating linker", "target platform", "-MACHINE linker option", "/MACHINE linker option", "MACHINE linker option"]
ms.assetid: 8d41bf4b-7e53-4ab9-9085-d852b08d31c2
---
# /MACHINE (Specify Target Platform)

```
/MACHINE:{ARM|EBC|X64|X86}
```
> **`/MACHINE:`**{**`ARM`**|**`ARM64`**|**`ARM64EC`**|**`EBC`**|**`X64`**|**`X86`**}

## Remarks

The /MACHINE option specifies the target platform for the program.
The **`/MACHINE`** option specifies the target platform for the program.

Usually, you don't have to specify the /MACHINE option. LINK infers the machine type from the .obj files. However, in some circumstances, LINK cannot determine the machine type and issues a [linker tools error LNK1113](../../error-messages/tool-errors/linker-tools-error-lnk1113.md). If such an error occurs, specify /MACHINE.
Usually, you don't have to specify the **`/MACHINE`** option. LINK infers the machine type from the *`.obj`* files. However, in some circumstances, LINK cannot determine the machine type and issues a [linker tools error LNK1113](../../error-messages/tool-errors/linker-tools-error-lnk1113.md). If such an error occurs, specify **`/MACHINE`**.

### To set this linker option in the Visual Studio development environment

Expand All @@ -32,5 +30,5 @@ Usually, you don't have to specify the /MACHINE option. LINK infers the machine

## See also

[MSVC linker reference](linking.md)<br/>
[MSVC linker reference](linking.md)\
[MSVC Linker Options](linker-options.md)