mirror of
https://github.com/python/cpython.git
synced 2025-10-21 06:02:21 +00:00
- Issue #14330: For cross builds, don't use host python, use host search paths
for host compiler.
This commit is contained in:
parent
b457b9be4d
commit
1abe1c5fe1
6 changed files with 200 additions and 27 deletions
|
@ -53,6 +53,10 @@ def get_platform ():
|
|||
return 'win-ia64'
|
||||
return sys.platform
|
||||
|
||||
# Set for cross builds explicitly
|
||||
if "_PYTHON_HOST_PLATFORM" in os.environ:
|
||||
return os.environ["_PYTHON_HOST_PLATFORM"]
|
||||
|
||||
if os.name != "posix" or not hasattr(os, 'uname'):
|
||||
# XXX what about the architecture? NT is Intel or Alpha,
|
||||
# Mac OS is M68k or PPC, etc.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue