Author: Carl Friedrich Bolz <cfb...@gmx.de>
Branch: 
Changeset: r85960:dc10853dfd3b
Date: 2016-07-14 10:13 +0200
http://bitbucket.org/pypy/pypy/changeset/dc10853dfd3b/

Log:    add --jit option to the tla target

diff --git a/rpython/jit/tl/tla/targettla.py b/rpython/jit/tl/tla/targettla.py
--- a/rpython/jit/tl/tla/targettla.py
+++ b/rpython/jit/tl/tla/targettla.py
@@ -4,9 +4,16 @@
 
 
 def entry_point(args):
-    """Main entry point of the stand-alone executable:
-    takes a list of strings and returns the exit code.
-    """
+    for i in range(len(argv)):
+        if argv[i] == "--jit":
+            if len(argv) == i + 1:
+                print "missing argument after --jit"
+                return 2
+            jitarg = argv[i + 1]
+            del argv[i:i+2]
+            jit.set_user_param(jitdriver, jitarg)
+            break
+
     if len(args) < 3:
         print "Usage: %s filename x" % (args[0],)
         return 2
@@ -26,7 +33,7 @@
     return bytecode
 
 def target(driver, args):
-    return entry_point, None
+    return entry_point
 
 # ____________________________________________________________
 
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to