[pypy-svn] r34883 - pypy/dist/pypy/jit/codegen/llvm
ericvrp at codespeak.net
ericvrp at codespeak.net
Thu Nov 23 10:15:17 CET 2006
Author: ericvrp
Date: Thu Nov 23 10:15:01 2006
New Revision: 34883
Modified:
pypy/dist/pypy/jit/codegen/llvm/llvmjit.py
Log:
small error message improvement and using a helper to make the llvm jit codegen work with older ctypes too.
Modified: pypy/dist/pypy/jit/codegen/llvm/llvmjit.py
==============================================================================
--- pypy/dist/pypy/jit/codegen/llvm/llvmjit.py (original)
+++ pypy/dist/pypy/jit/codegen/llvm/llvmjit.py Thu Nov 23 10:15:01 2006
@@ -7,6 +7,7 @@
This file contains the ctypes specification to use the llvmjit library!
'''
from pypy.rpython.rctypes import implementation
+from pypy.rpython.rctypes.tool.util import load_library
from ctypes import _CFuncPtr, _FUNCFLAG_CDECL
from ctypes import *
@@ -31,10 +32,10 @@
if not os.path.exists(path):
import py
- py.test.skip("libllvmjit.so compilation failed (no llvm headers?)")
+ py.test.skip("libllvmjit.so compilation failed (no llvm headers or llvm version not up to date?)")
#load the actual library
-llvmjit = cdll.LoadLibrary(os.path.abspath(path))
+llvmjit = load_library(os.path.abspath(path))
class _FuncPtr(_CFuncPtr):
_flags_ = _FUNCFLAG_CDECL
# aaarghdistutilsunixaaargh (may need something different for standalone builds...)
More information about the Pypy-commit
mailing list