[pypy-svn] r16782 - in pypy/release/0.7.x/pypy/translator/llvm: . demo

ericvrp at codespeak.net ericvrp at codespeak.net
Sat Aug 27 17:23:46 CEST 2005


Author: ericvrp
Date: Sat Aug 27 17:23:45 2005
New Revision: 16782

Modified:
   pypy/release/0.7.x/pypy/translator/llvm/build_llvm_module.py
   pypy/release/0.7.x/pypy/translator/llvm/demo/run.py
Log:
fix, so run_pypy-llvm.sh actually can run the standalone


Modified: pypy/release/0.7.x/pypy/translator/llvm/build_llvm_module.py
==============================================================================
--- pypy/release/0.7.x/pypy/translator/llvm/build_llvm_module.py	(original)
+++ pypy/release/0.7.x/pypy/translator/llvm/build_llvm_module.py	Sat Aug 27 17:23:45 2005
@@ -137,4 +137,5 @@
     if pyxfile:
         return testmodule
     if exe_name:
-        return exe_name
+        exe_path = str(llvmfile.dirpath().join(exe_name))
+        return exe_path

Modified: pypy/release/0.7.x/pypy/translator/llvm/demo/run.py
==============================================================================
--- pypy/release/0.7.x/pypy/translator/llvm/demo/run.py	(original)
+++ pypy/release/0.7.x/pypy/translator/llvm/demo/run.py	Sat Aug 27 17:23:45 2005
@@ -18,11 +18,10 @@
     f()
 
 def l(name):
-    compile_module(entry_point, [], standalone=True, exe_name=name)
+    exe_path = compile_module(entry_point, [], standalone=True, exe_name=name)
     print 'Running standalone (llvm-based) executable:'
-    cmd = "/tmp/usession-current/%s" % name
-    print cmd
-    os.system(cmd)
+    print exe_path
+    os.system(exe_path)
 
 def run(ep, name="go"):
     global entry_point



More information about the Pypy-commit mailing list