Skip to content

Commit 67399f0

Browse files
author
Colin Robertson
authored
Merge pull request #4192 from MicrosoftDocs/FromPublicMasterBranch
Confirm merge from FromPublicMasterBranch to main to sync with https://github.com/MicrosoftDocs/cpp-docs (branch main)
2 parents 2681246 + e10454c commit 67399f0

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

docs/build/reference/machine-specify-target-platform.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
---
22
description: "Learn more about: /MACHINE (Specify Target Platform)"
33
title: "/MACHINE (Specify Target Platform)"
4-
ms.date: "11/04/2016"
4+
ms.date: 03/25/2022
55
f1_keywords: ["VC.Project.VCLinkerTool.TargetMachine", "/machine"]
66
helpviewer_keywords: ["mapfiles, creating linker", "target platform", "-MACHINE linker option", "/MACHINE linker option", "MACHINE linker option"]
77
ms.assetid: 8d41bf4b-7e53-4ab9-9085-d852b08d31c2
88
---
99
# /MACHINE (Specify Target Platform)
1010

11-
```
12-
/MACHINE:{ARM|EBC|X64|X86}
13-
```
11+
> **`/MACHINE:`**{**`ARM`**|**`ARM64`**|**`ARM64EC`**|**`EBC`**|**`X64`**|**`X86`**}
1412
1513
## Remarks
1614

17-
The /MACHINE option specifies the target platform for the program.
15+
The **`/MACHINE`** option specifies the target platform for the program.
1816

19-
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.
17+
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`**.
2018

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

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

3331
## See also
3432

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

0 commit comments

Comments
 (0)