mirror of
https://github.com/python/cpython.git
synced 2025-07-30 14:44:10 +00:00
Issue #2513: enable 64bit cross compilation on windows.
This commit is contained in:
parent
aa63d0d4af
commit
495cf99aaf
16 changed files with 323 additions and 65 deletions
|
@ -30,7 +30,7 @@ def get_platform ():
|
|||
irix64-6.2
|
||||
|
||||
Windows will return one of:
|
||||
win-x86_64 (64bit Windows on x86_64 (AMD64))
|
||||
win-amd64 (64bit Windows on AMD64 (aka x86_64, Intel64, EM64T, etc)
|
||||
win-ia64 (64bit Windows on Itanium)
|
||||
win32 (all others - specifically, sys.platform is returned)
|
||||
|
||||
|
@ -45,7 +45,7 @@ def get_platform ():
|
|||
j = string.find(sys.version, ")", i)
|
||||
look = sys.version[i+len(prefix):j].lower()
|
||||
if look=='amd64':
|
||||
return 'win-x86_64'
|
||||
return 'win-amd64'
|
||||
if look=='itanium':
|
||||
return 'win-ia64'
|
||||
return sys.platform
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue