[pypy-svn] r40885 - pypy/dist/pypy/translator/goal

cfbolz at codespeak.net cfbolz at codespeak.net
Wed Mar 21 11:23:44 CET 2007


Author: cfbolz
Date: Wed Mar 21 11:23:42 2007
New Revision: 40885

Modified:
   pypy/dist/pypy/translator/goal/targetpypystandalone.py
Log:
enable clr module when translating with gencli and the other way round


Modified: pypy/dist/pypy/translator/goal/targetpypystandalone.py
==============================================================================
--- pypy/dist/pypy/translator/goal/targetpypystandalone.py	(original)
+++ pypy/dist/pypy/translator/goal/targetpypystandalone.py	Wed Mar 21 11:23:42 2007
@@ -133,6 +133,11 @@
         elif config.objspace.usemodules.pypyjit:
             self.translateconfig.goal_options.jit = True
 
+        if config.translation.backend == "cli":
+            config.objspace.usemodules.clr = True
+        elif config.objspace.usemodules.clr:
+            config.translation.backend == "clr"
+
         config.objspace.nofaking = True
         config.objspace.compiler = "ast"
         config.translating = True



More information about the Pypy-commit mailing list