[pypy-svn] r54013 - pypy/dist/pypy/config

arigo at codespeak.net arigo at codespeak.net
Tue Apr 22 14:56:38 CEST 2008


Author: arigo
Date: Tue Apr 22 14:56:37 2008
New Revision: 54013

Modified:
   pypy/dist/pypy/config/translationoption.py
Log:
Whack at the gc options a bit more.
Now, if unspecified, the gcrootfinder should default to "shadowstack"
(it defaulted to "ref" even when using a framework gc...).


Modified: pypy/dist/pypy/config/translationoption.py
==============================================================================
--- pypy/dist/pypy/config/translationoption.py	(original)
+++ pypy/dist/pypy/config/translationoption.py	Tue Apr 22 14:56:37 2008
@@ -57,14 +57,18 @@
                   cmdline="--gc"),
     ChoiceOption("gctransformer", "GC transformer that is used - internal",
                  ["boehm", "ref", "framework", "none"],
-                 default="ref", cmdline=None),
-    ChoiceOption("gcrootfinder", "Strategy for finding GC Roots",
-                 ["ref", "boehm", "shadowstack", "stackless", "llvmgc",
-                  "asmgcc"], "ref",
+                 default="ref", cmdline=None,
+                 requires={
+                     "boehm": [("translation.gcrootfinder", "n/a")],
+                     "ref": [("translation.gcrootfinder", "n/a")],
+                     "none": [("translation.gcrootfinder", "n/a")],
+                 }),
+    ChoiceOption("gcrootfinder",
+                 "Strategy for finding GC Roots (framework GCs only)",
+                 ["n/a", "shadowstack", "stackless", "llvmgc", "asmgcc"],
+                 "shadowstack",
                  cmdline="--gcrootfinder",
                  requires={
-                     "ref": [("translation.gc", "ref")],
-                     "boehm": [("translation.gc", "boehm")],
                      "shadowstack": [("translation.gctransformer", "framework")],
                      "stackless": [("translation.gctransformer", "framework"),
                                    ("translation.stackless", True)],



More information about the Pypy-commit mailing list