[pypy-svn] r16237 - pypy/dist/pypy/translator/llvm2

ericvrp at codespeak.net ericvrp at codespeak.net
Mon Aug 22 21:59:21 CEST 2005


Author: ericvrp
Date: Mon Aug 22 21:59:20 2005
New Revision: 16237

Modified:
   pypy/dist/pypy/translator/llvm2/build_llvm_module.py
Log:
* fixed exe buildig part for 64 bit architectures


Modified: pypy/dist/pypy/translator/llvm2/build_llvm_module.py
==============================================================================
--- pypy/dist/pypy/translator/llvm2/build_llvm_module.py	(original)
+++ pypy/dist/pypy/translator/llvm2/build_llvm_module.py	Mon Aug 22 21:59:20 2005
@@ -206,6 +206,9 @@
     else:       #assume 64 bit platform (x86-64?)
         #this special case for x86-64 (called ia64 in llvm) can go as soon as llc supports ia64 assembly output!
         cmds.append("llc %s %s.bc -march=c -f -o %s.c" % (EXCEPTIONS_SWITCHES, b, b))
+        if exe_name:
+            cmds.append("gcc %s.c -c -O2 -fomit-frame-pointer" % (b,))
+            cmds.append("gcc %s.o -static %s -lm -o %s" % (b, gc_libs, exe_name))
         source_files.append("%s.c" % b)
 
     try:



More information about the Pypy-commit mailing list