[pypy-commit] pypy default: Disable clock_gettime() on OS/X. It's a mess because it was only added
arigo
pypy.commits at gmail.com
Fri Nov 18 14:18:51 EST 2016
Author: Armin Rigo <arigo at tunes.org>
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:
More information about the pypy-commit
mailing list