[pypy-commit] pypy stmgc-c7: Check that we don't try to compile with '--stm' on a 32-bit platform
arigo
noreply at buildbot.pypy.org
Fri Jan 30 19:10:45 CET 2015
Author: Armin Rigo <arigo at tunes.org>
Branch: stmgc-c7
Changeset: r75588:a839ba4ff6e2
Date: 2015-01-30 19:10 +0100
http://bitbucket.org/pypy/pypy/changeset/a839ba4ff6e2/
Log: Check that we don't try to compile with '--stm' on a 32-bit platform
or on non-linux
diff --git a/rpython/config/translationoption.py b/rpython/config/translationoption.py
--- a/rpython/config/translationoption.py
+++ b/rpython/config/translationoption.py
@@ -26,6 +26,7 @@
ROOTFINDERS = ["n/a", "shadowstack", "asmgcc"]
IS_64_BITS = sys.maxint > 2147483647
+SUPPORT_STM = IS_64_BITS and sys.platform.startswith("linux")
SUPPORT__THREAD = ( # whether the particular C compiler supports __thread
sys.platform.startswith("linux")) # Linux works
@@ -118,7 +119,8 @@
suggests=[("translation.gc", "stmgc")], # Boehm works too
requires=[("translation.thread", True),
("translation.continuation", False), # XXX for now
- ]),
+ ] + ([("'--stm requires 64-bit Linux!'", None)]
+ if not SUPPORT_STM else [])),
BoolOption("sandbox", "Produce a fully-sandboxed executable",
default=False, cmdline="--sandbox",
requires=[("translation.thread", False)],
More information about the pypy-commit
mailing list