Created
March 22, 2018 18:23
-
-
Save tycho/2f158b610c94fea56060a26c8096403f to your computer and use it in GitHub Desktop.
Windows 10 ARM64 - Python 3.6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
These are the deltas required for the python.props file to build for ARM64 on Windows. You still need to add | |
the ARM64 platform definitions to the solution/project files before you can build, though. | |
diff --git a/PCbuild/python.props b/PCbuild/python.props | |
index 16a7672315..d865c86211 100644 | |
--- a/PCbuild/python.props | |
+++ b/PCbuild/python.props | |
@@ -74,7 +74,8 @@ | |
--> | |
<_RegistryVersion>$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0@ProductVersion)</_RegistryVersion> | |
<_RegistryVersion Condition="$(_RegistryVersion) == ''">$(Registry:HKEY_LOCAL_MACHINE\WOW6432Node\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0@ProductVersion)</_RegistryVersion> | |
- <DefaultWindowsSDKVersion>10.0.15063.0</DefaultWindowsSDKVersion> | |
+ <DefaultWindowsSDKVersion>10.0.16299.0</DefaultWindowsSDKVersion> | |
+ <DefaultWindowsSDKVersion Condition="$(_RegistryVersion) == '10.0.15063'">10.0.15063.0</DefaultWindowsSDKVersion> | |
<DefaultWindowsSDKVersion Condition="$(_RegistryVersion) == '10.0.14393'">10.0.14393.0</DefaultWindowsSDKVersion> | |
<DefaultWindowsSDKVersion Condition="$(_RegistryVersion) == '10.0.10586'">10.0.10586.0</DefaultWindowsSDKVersion> | |
<DefaultWindowsSDKVersion Condition="$(_RegistryVersion) == '10.0.10240'">10.0.10240.0</DefaultWindowsSDKVersion> | |
@@ -176,6 +177,16 @@ | |
<!-- The version number for sys.winver --> | |
<SysWinVer>$(MajorVersionNumber).$(MinorVersionNumber)$(PyArchExt)$(PyTestExt)</SysWinVer> | |
</PropertyGroup> | |
+ | |
+ <PropertyGroup Label="UserMacros"> | |
+ <WindowsSDKDesktopARM64Support>true</WindowsSDKDesktopARM64Support> | |
+ </PropertyGroup> | |
+ <ItemGroup> | |
+ <BuildMacro Include="WindowsSDKDesktopARM64Support"> | |
+ <Value>$(WindowsSDKDesktopARM64Support)</Value> | |
+ <EnvironmentVariable>true</EnvironmentVariable> | |
+ </BuildMacro> | |
+ </ItemGroup> | |
<!-- Displays the calculated version info --> | |
<Target Name="ShowVersionInfo"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment