[pypy-svn] r79296 - pypy/trunk/pypy/translator/goal
arigo at codespeak.net
arigo at codespeak.net
Sat Nov 20 15:03:43 CET 2010
Author: arigo
Date: Sat Nov 20 15:03:41 2010
New Revision: 79296
Modified:
pypy/trunk/pypy/translator/goal/targetpypystandalone.py
Log:
This lets the file produced by PYPYJITLOG contain the name of the executable. Useful for loading symbols.
Modified: pypy/trunk/pypy/translator/goal/targetpypystandalone.py
==============================================================================
--- pypy/trunk/pypy/translator/goal/targetpypystandalone.py (original)
+++ pypy/trunk/pypy/translator/goal/targetpypystandalone.py Sat Nov 20 15:03:41 2010
@@ -28,9 +28,14 @@
w_call_finish_gateway = space.wrap(gateway.interp2app(call_finish))
w_call_startup_gateway = space.wrap(gateway.interp2app(call_startup))
w_os = setup_nanos(space)
+ withjit = space.config.objspace.usemodules.pypyjit
def entry_point(argv):
space.timer.start("Entrypoint")
+ if withjit:
+ from pypy.jit.backend.hlinfo import highleveljitinfo
+ highleveljitinfo.sys_executable = argv[0]
+
#debug("entry point starting")
#for arg in argv:
# debug(" argv -> " + arg)
More information about the Pypy-commit
mailing list