[pypy-commit] cffi default: Issue 123: force __thread off on OS/X, for now.

arigo noreply at buildbot.pypy.org
Tue Jan 7 09:58:10 CET 2014


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r1450:3e29d321b1f1
Date: 2014-01-07 09:57 +0100
http://bitbucket.org/cffi/cffi/changeset/3e29d321b1f1/

Log:	Issue 123: force __thread off on OS/X, for now.

diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -42,6 +42,11 @@
             resultlist[:] = res
 
 def ask_supports_thread():
+    if sys.platform == "darwin":
+        sys.stderr.write("OS/X: confusion between 'cc' versus 'gcc'")
+        sys.stderr.write(" (see issue 123)\n")
+        sys.stderr.write("will not use '__thread' in the C code\n")
+        return
     import distutils.errors
     from distutils.ccompiler import new_compiler
     compiler = new_compiler(force=1)


More information about the pypy-commit mailing list