Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r88475:91e202bbd0b9
Date: 2016-11-18 20:18 +0100
http://bitbucket.org/pypy/pypy/changeset/91e202bbd0b9/

Log:    Disable clock_gettime() on OS/X. It's a mess because it was only
        added in 10.12, and there are strange effects when compiling on a
        10.11---it seems the macro CLOCK_MONOTONIC is found anyway?

diff --git a/rpython/rlib/rtime.py b/rpython/rlib/rtime.py
--- a/rpython/rlib/rtime.py
+++ b/rpython/rlib/rtime.py
@@ -173,6 +173,12 @@
     state = State()
 
 HAS_CLOCK_GETTIME = (CLOCK_MONOTONIC is not None)
+if sys.platform == 'darwin':
+    HAS_CLOCK_GETTIME = False
+    # ^^^ https://bitbucket.org/pypy/pypy/issues/2432 and others
+    # (change it manually if you *know* you want to build and run on
+    # OS/X 10.12 or later)
+
 if HAS_CLOCK_GETTIME:
     # Linux and other POSIX systems with clock_gettime()
     # TIMESPEC:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to