summaryrefslogtreecommitdiff
path: root/Lib/distutils/util.py
diff options
context:
space:
mode:
authordoko <doko@ubuntu.com>2012-06-30 20:42:45 +0200
committerdoko <doko@ubuntu.com>2012-06-30 20:42:45 +0200
commit60133f57eec8aa8cd0e323ec55753d9f6c5c7f9b (patch)
treeb4b1dde0a15033711c486d82a12c50d22151638c /Lib/distutils/util.py
parent2abf3e2564b06eb0629c8349fdc96504c9949c1e (diff)
downloadcpython-60133f57eec8aa8cd0e323ec55753d9f6c5c7f9b.tar.gz
- Issue #14330: For cross builds, don't use host python, use host search paths
for host compiler.
Diffstat (limited to 'Lib/distutils/util.py')
-rw-r--r--Lib/distutils/util.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/distutils/util.py b/Lib/distutils/util.py
index bce840274d..9833bf95c0 100644
--- a/Lib/distutils/util.py
+++ b/Lib/distutils/util.py
@@ -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.