[pypy-svn] r25424 - pypy/dist/pypy/translator/llvm/pyllvm

ericvrp at codespeak.net ericvrp at codespeak.net
Wed Apr 5 23:32:08 CEST 2006


Author: ericvrp
Date: Wed Apr  5 23:32:08 2006
New Revision: 25424

Modified:
   pypy/dist/pypy/translator/llvm/pyllvm/cc.py
Log:
Use ctypes.cdll.LoadLibrary which seems to work better on Linux


Modified: pypy/dist/pypy/translator/llvm/pyllvm/cc.py
==============================================================================
--- pypy/dist/pypy/translator/llvm/pyllvm/cc.py	(original)
+++ pypy/dist/pypy/translator/llvm/pyllvm/cc.py	Wed Apr  5 23:32:08 2006
@@ -8,7 +8,7 @@
         d = __file__[:__file__.find("pyllvm")] + "llvmcapi/"
         #XXX does this load once or every time?
         try:
-            self.library  = cdll.load(d + libname + ".so")
+            self.library  = cdll.LoadLibrary(d + libname + ".so")
         except:
             raise Exception("llvmcapi not found: run 'python setup.py build_ext -i' in " + d)
         self.restype  = restype



More information about the Pypy-commit mailing list