[pypy-commit] pypy llvm-translation-backend: Instead of setting the LLVM translation backend by default, set it after the construction of the config object. This makes sure raisingop2direct_call is forced.

Manuel Jacob noreply at buildbot.pypy.org
Mon Jan 27 18:21:16 CET 2014


Author: Manuel Jacob
Branch: llvm-translation-backend
Changeset: r68962:f38ed6da2533
Date: 2014-01-27 18:20 +0100
http://bitbucket.org/pypy/pypy/changeset/f38ed6da2533/

Log:	Instead of setting the LLVM translation backend by default, set it
	after the construction of the config object. This makes sure
	raisingop2direct_call is forced.

diff --git a/rpython/config/translationoption.py b/rpython/config/translationoption.py
--- a/rpython/config/translationoption.py
+++ b/rpython/config/translationoption.py
@@ -39,7 +39,7 @@
     ChoiceOption("type_system", "Type system to use when RTyping",
                  ["lltype"], cmdline=None, default="lltype"),
     ChoiceOption("backend", "Backend to use for code generation",
-                 ["c", "llvm"], default="llvm",
+                 ["c", "llvm"], default="c",
                  requires={
                      "c":      [("translation.type_system", "lltype")],
                      "llvm":   [("translation.type_system", "lltype"),
@@ -292,6 +292,7 @@
                          if child._name != newname]
     descr = OptionDescription("pypy", "all options", children)
     config = Config(descr, **overrides)
+    config.translation.backend = 'llvm'
     if translating:
         config.translating = True
     if existing_config is not None:


More information about the pypy-commit mailing list