[pypy-svn] r61213 - pypy/trunk/pypy/translator/platform
afa at codespeak.net
afa at codespeak.net
Thu Jan 22 01:41:33 CET 2009
Author: afa
Date: Thu Jan 22 01:41:33 2009
New Revision: 61213
Modified:
pypy/trunk/pypy/translator/platform/__init__.py
Log:
When changing the configuration for the 'host' platform,
also change the platform installed in platform.host.
Now --cc=mingw uses this compiler at all stages of the translation.
Modified: pypy/trunk/pypy/translator/platform/__init__.py
==============================================================================
--- pypy/trunk/pypy/translator/platform/__init__.py (original)
+++ pypy/trunk/pypy/translator/platform/__init__.py Thu Jan 22 01:41:33 2009
@@ -186,10 +186,13 @@
return DistutilsPlatform()
else:
raise ValueError("platform = %s" % (new_platform,))
-
+
def set_platform(new_platform, cc):
global platform
log.msg("Setting platform to %r cc=%s" % (new_platform,cc))
platform = pick_platform(new_platform, cc)
-
+
+ if new_platform == 'host':
+ global host
+ host = platform
More information about the Pypy-commit
mailing list