Skip to content

Commit 81ccad4

Browse files
committed
Add ARM.props and update Debug.props.
1 parent c2a124c commit 81ccad4

File tree

3 files changed

+47
-0
lines changed

3 files changed

+47
-0
lines changed

builds/msvc/properties/Arm.props

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
4+
<PropertyGroup>
5+
<_PropertySheetDisplayName>ARM32 Settings</_PropertySheetDisplayName>
6+
</PropertyGroup>
7+
8+
<ItemDefinitionGroup>
9+
<ClCompile>
10+
<!-- Note that WIN32 and _WIN32 are safe for ARM32 builds and ensure compatibility with
11+
Windows headers, as they imply Windows 32-bit or above. _ARM_ indicates the 32-bit ARM
12+
architecture. -->
13+
<PreprocessorDefinitions>WIN32;_WIN32;_ARM_;%(PreprocessorDefinitions)</PreprocessorDefinitions>
14+
</ClCompile>
15+
<Link>
16+
<TargetMachine>MachineARM</TargetMachine>
17+
</Link>
18+
<Lib>
19+
<AdditionalOptions>/MACHINE:ARM %(AdditionalOptions)</AdditionalOptions>
20+
</Lib>
21+
</ItemDefinitionGroup>
22+
23+
</Project>

builds/msvc/properties/Arm64.props

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
4+
<PropertyGroup>
5+
<_PropertySheetDisplayName>ARM64 Settings</_PropertySheetDisplayName>
6+
</PropertyGroup>
7+
8+
<ItemDefinitionGroup>
9+
<ClCompile>
10+
<!-- Note that Win32 defines may cause WIN32 to become defined when using Windows headers,
11+
but _WIN32 implies Windows 32-bit or above. These are safe for ARM64 builds and ensure
12+
compatibility with Windows headers. _ARM64 indicates the ARM64 architecture. -->
13+
<PreprocessorDefinitions>WIN32;_WIN32;_ARM64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
14+
</ClCompile>
15+
<Link>
16+
<TargetMachine>MachineARM64</TargetMachine>
17+
</Link>
18+
<Lib>
19+
<AdditionalOptions>/MACHINE:ARM64 %(AdditionalOptions)</AdditionalOptions>
20+
</Lib>
21+
</ItemDefinitionGroup>
22+
23+
</Project>

builds/msvc/properties/Debug.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
1717
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
1818
<FunctionLevelLinking>true</FunctionLevelLinking>
19+
<IntrinsicFunctions>true</IntrinsicFunctions>
1920
<Optimization>Disabled</Optimization>
2021
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
2122
</ClCompile>

0 commit comments

Comments
 (0)