[pypy-commit] pypy default: invert logic to use -rt, because it also doesn't work on mac os

bivab noreply at buildbot.pypy.org
Mon Aug 6 09:12:31 CEST 2012


Author: David Schneider <david.schneider at picle.org>
Branch: 
Changeset: r56591:732b8dc427bc
Date: 2012-08-06 09:09 +0200
http://bitbucket.org/pypy/pypy/changeset/732b8dc427bc/

Log:	invert logic to use -rt, because it also doesn't work on mac os

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,5 +1,5 @@
 from __future__ import with_statement
-import os
+import sys
 
 from pypy.interpreter.error import exception_from_errno
 from pypy.interpreter.gateway import unwrap_spec
@@ -7,10 +7,11 @@
 from pypy.rpython.tool import rffi_platform
 from pypy.translator.tool.cbuild import ExternalCompilationInfo
 
-if os.name == 'nt':
+if sys.platform == 'linux2':
+    libraries = ["rt"]
+else:
     libraries = []
-else:
-    libraries = ["rt"]
+
 
 class CConfig:
     _compilation_info_ = ExternalCompilationInfo(


More information about the pypy-commit mailing list