[pypy-commit] pypy default: osx fix?
alex_gaynor
noreply at buildbot.pypy.org
Sun Mar 11 20:29:09 CET 2012
Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch:
Changeset: r53299:dadcd1b0f987
Date: 2012-03-11 12:24 -0700
http://bitbucket.org/pypy/pypy/changeset/dadcd1b0f987/
Log: osx fix?
diff --git a/pypy/module/__pypy__/interp_time.py b/pypy/module/__pypy__/interp_time.py
--- a/pypy/module/__pypy__/interp_time.py
+++ b/pypy/module/__pypy__/interp_time.py
@@ -1,3 +1,5 @@
+import sys
+
from pypy.interpreter.error import exception_from_errno
from pypy.interpreter.gateway import unwrap_spec
from pypy.rpython.lltypesystem import rffi, lltype
@@ -5,11 +7,15 @@
from pypy.translator.tool.cbuild import ExternalCompilationInfo
+if sys.platform.startswith("linux"):
+ LIBRARIES = ["rt"]
+else:
+ LIBRARIES = []
class CConfig:
_compilation_info_ = ExternalCompilationInfo(
includes=["time.h"],
- libraries=["rt"],
+ libraries=LIBRARIES,
)
HAS_CLOCK_GETTIME = rffi_platform.Has('clock_gettime')
More information about the pypy-commit
mailing list