[pypy-svn] r24176 - in pypy/dist/pypy/translator: . goal
mwh at codespeak.net
mwh at codespeak.net
Thu Mar 9 14:52:13 CET 2006
Author: mwh
Date: Thu Mar 9 14:52:02 2006
New Revision: 24176
Modified:
pypy/dist/pypy/translator/driver.py
pypy/dist/pypy/translator/goal/translate.py
Log:
allow using the framework gc policy from translate.py.
standalone things don't build yet.
Modified: pypy/dist/pypy/translator/driver.py
==============================================================================
--- pypy/dist/pypy/translator/driver.py (original)
+++ pypy/dist/pypy/translator/driver.py Thu Mar 9 14:52:02 2006
@@ -219,6 +219,9 @@
if opt.gc == 'none':
from pypy.translator.c import gc
gcpolicy = gc.NoneGcPolicy
+ if opt.gc == 'framework':
+ from pypy.translator.c import gc
+ gcpolicy = gc.FrameworkGcPolicy
if standalone:
from pypy.translator.c.genc import CStandaloneBuilder as CBuilder
Modified: pypy/dist/pypy/translator/goal/translate.py
==============================================================================
--- pypy/dist/pypy/translator/goal/translate.py (original)
+++ pypy/dist/pypy/translator/goal/translate.py Thu Mar 9 14:52:02 2006
@@ -48,7 +48,7 @@
'1_backend': [OPT(('-b', '--backend'), "Backend", ['c', 'llvm'])],
- '2_gc': [OPT(('--gc',), "Garbage collector", ['boehm', 'ref', 'none'])],
+ '2_gc': [OPT(('--gc',), "Garbage collector", ['boehm', 'ref', 'framework', 'none'])],
'3_stackless': [OPT(('--stackless',), "Stackless code generation", True)],
'4_merge_if_blocks': [OPT(('--no-if-blocks-merge',), "Do not merge if ... elif ... chains and use a switch statement for them.", False)],
},
More information about the Pypy-commit
mailing list