[pypy-svn] r66026 - pypy/trunk/pypy/translator/goal

fijal at codespeak.net fijal at codespeak.net
Mon Jun 29 00:19:01 CEST 2009


Author: fijal
Date: Mon Jun 29 00:18:59 2009
New Revision: 66026

Modified:
   pypy/trunk/pypy/translator/goal/sharedpypy.py
Log:
slightly saner defaults


Modified: pypy/trunk/pypy/translator/goal/sharedpypy.py
==============================================================================
--- pypy/trunk/pypy/translator/goal/sharedpypy.py	(original)
+++ pypy/trunk/pypy/translator/goal/sharedpypy.py	Mon Jun 29 00:18:59 2009
@@ -5,9 +5,10 @@
 from pypy.rpython.lltypesystem.rffi import charp2str, CCHARP
 from pypy.tool.option import make_objspace
 from pypy.interpreter.error import OperationError
-from pypy.config.pypyoption import pypy_optiondescription
+from pypy.config.pypyoption import pypy_optiondescription, set_pypy_opt_level
 from pypy.interpreter.pyopcode import prepare_exec
 from pypy.translator.goal.ann_override import PyPyAnnotatorPolicy
+from pypy.config.translationoption import set_opt_level
 
 OVERRIDES = {
     'translation.debug': False,
@@ -19,6 +20,8 @@
     config.objspace.nofaking = True
     config.objspace.compiler = "ast"
     config.translating = True
+    set_opt_level(config, '1')
+    set_pypy_opt_level(config, '1')
     print config
 
     space = make_objspace(config)



More information about the Pypy-commit mailing list