[pypy-svn] r57385 - in pypy/dist/pypy: config translator

arigo at codespeak.net arigo at codespeak.net
Mon Aug 18 09:55:18 CEST 2008


Author: arigo
Date: Mon Aug 18 09:55:15 2008
New Revision: 57385

Modified:
   pypy/dist/pypy/config/translationoption.py
   pypy/dist/pypy/translator/driver.py
Log:
Fix typo.  Add defaults for the backend and the type_system;
this makes test_driver.py pass again, and is probably a good
idea.


Modified: pypy/dist/pypy/config/translationoption.py
==============================================================================
--- pypy/dist/pypy/config/translationoption.py	(original)
+++ pypy/dist/pypy/config/translationoption.py	Mon Aug 18 09:55:15 2008
@@ -17,7 +17,7 @@
                default=False, cmdline="--stackless",
                requires=[("translation.type_system", "lltype")]),
     ChoiceOption("type_system", "Type system to use when RTyping",
-                 ["lltype", "ootype"], cmdline=None,
+                 ["lltype", "ootype"], cmdline=None, default="lltype",
                  requires={
                      "ootype": [
                                 ("translation.backendopt.constfold", False),
@@ -27,7 +27,7 @@
                                 ]
                      }),
     ChoiceOption("backend", "Backend to use for code generation",
-                 ["c", "llvm", "cli", "jvm", "js"],
+                 ["c", "llvm", "cli", "jvm", "js"], default="c",
                  requires={
                      "c":      [("translation.type_system", "lltype")],
                      "llvm":   [("translation.type_system", "lltype"),

Modified: pypy/dist/pypy/translator/driver.py
==============================================================================
--- pypy/dist/pypy/translator/driver.py	(original)
+++ pypy/dist/pypy/translator/driver.py	Mon Aug 18 09:55:15 2008
@@ -115,7 +115,7 @@
             explicit_task = task
             parts = task.split('_')
             if len(parts) == 1:
-                if task in ('annotate'):
+                if task in ('annotate',):
                     expose_task(task)
             else:
                 task, postfix = parts



More information about the Pypy-commit mailing list