[pypy-svn] r66158 - pypy/branch/pyjitpl5/pypy/jit/backend/llvm
arigo at codespeak.net
arigo at codespeak.net
Fri Jul 10 11:47:48 CEST 2009
Author: arigo
Date: Fri Jul 10 11:47:46 2009
New Revision: 66158
Modified:
pypy/branch/pyjitpl5/pypy/jit/backend/llvm/llvm_rffi.py
Log:
Check that llvm is installed before letting the tests run.
Modified: pypy/branch/pyjitpl5/pypy/jit/backend/llvm/llvm_rffi.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/backend/llvm/llvm_rffi.py (original)
+++ pypy/branch/pyjitpl5/pypy/jit/backend/llvm/llvm_rffi.py Fri Jul 10 11:47:46 2009
@@ -20,6 +20,12 @@
if (not os.path.isfile(libname) or
os.path.getmtime(cname) > os.path.getmtime(libname) or
os.path.getmtime(cppname) > os.path.getmtime(libname)):
+ g = os.popen('%s --version' % llvm_config, 'r')
+ data = g.read()
+ g.close()
+ if not data.startswith('2.'):
+ py.test.skip("llvm (version 2) is required")
+
if not os.path.isdir(dirname):
if not os.path.isdir(cachename):
os.mkdir(cachename)
More information about the Pypy-commit
mailing list