[pypy-svn] r9267 - in pypy/dist/pypy/translator/llvm: . test

sanxiyn at codespeak.net sanxiyn at codespeak.net
Thu Feb 17 13:25:00 CET 2005


Author: sanxiyn
Date: Thu Feb 17 13:24:59 2005
New Revision: 9267

Modified:
   pypy/dist/pypy/translator/llvm/build_llvm_module.py
   pypy/dist/pypy/translator/llvm/test/test_genllvm.py
Log:
Include /usr/include/python2.3, not /usr/include/python.

As llvmc problem is now worked around and all tests pass for me,
re-enable LLVM tests.


Modified: pypy/dist/pypy/translator/llvm/build_llvm_module.py
==============================================================================
--- pypy/dist/pypy/translator/llvm/build_llvm_module.py	(original)
+++ pypy/dist/pypy/translator/llvm/build_llvm_module.py	Thu Feb 17 13:24:59 2005
@@ -40,7 +40,7 @@
                                           llvmfile.purebasename),
                 "as %s.s -o %s.o" % (llvmfile.purebasename,
                                      llvmfile.purebasename)]
-    ops2 = ["gcc -c -fPIC -I/usr/include/python %s.c" % pyxfile.purebasename,
+    ops2 = ["gcc -c -fPIC -I/usr/include/python2.3 %s.c" % pyxfile.purebasename,
            "gcc -shared %s.o %s.o -o %s.so" % (llvmfile.purebasename,
                                                modname, modname)]
     try:

Modified: pypy/dist/pypy/translator/llvm/test/test_genllvm.py
==============================================================================
--- pypy/dist/pypy/translator/llvm/test/test_genllvm.py	(original)
+++ pypy/dist/pypy/translator/llvm/test/test_genllvm.py	Thu Feb 17 13:24:59 2005
@@ -11,7 +11,7 @@
 from pypy.translator.llvm.test import llvmsnippet
 
 def setup_module(mod): 
-    mod.llvm_found = 0 #is_on_path("llvm-as")
+    mod.llvm_found = is_on_path("llvm-as")
 
 def compile_function(function, annotate):
     t = Translator(function)



More information about the Pypy-commit mailing list