Commits

Alex Gaynor committed dadcd1b

osx fix?

Comments (0)

Files changed (1)

pypy/module/__pypy__/interp_time.py

+import sys
+
 from pypy.interpreter.error import exception_from_errno
 from pypy.interpreter.gateway import unwrap_spec
 from pypy.rpython.lltypesystem import rffi, lltype
 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')