Author: Armin Rigo <[email protected]>
Branch: stm-gc
Changeset: r52796:5c8abeef1057
Date: 2012-02-23 11:30 +0100
http://bitbucket.org/pypy/pypy/changeset/5c8abeef1057/

Log:    Auto-enable the 'transaction' module if --stm is specified.

diff --git a/pypy/translator/goal/targetpypystandalone.py 
b/pypy/translator/goal/targetpypystandalone.py
--- a/pypy/translator/goal/targetpypystandalone.py
+++ b/pypy/translator/goal/targetpypystandalone.py
@@ -185,6 +185,11 @@
                 # module if translation.continuation cannot be enabled
                 config.objspace.usemodules._continuation = False
 
+        if config.translation.stm:
+            config.objspace.usemodules.transaction = True
+        elif config.objspace.usemodules.transaction:
+            raise Exception("use --stm, not --withmod-transaction alone")
+
         if not config.translation.rweakref:
             config.objspace.usemodules._weakref = False
 
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to