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

bivab noreply at buildbot.pypy.org
Mon Aug 6 14:57:10 CEST 2012


Author: David Schneider <david.schneider at picle.org>
Branch: arm-backend-2
Changeset: r56595:5cd98a6a5d06
Date: 2012-08-06 09:09 +0200
http://bitbucket.org/pypy/pypy/changeset/5cd98a6a5d06/

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