diff options
Diffstat (limited to 'rpython')
-rw-r--r-- | rpython/jit/tl/tla/targettla.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/rpython/jit/tl/tla/targettla.py b/rpython/jit/tl/tla/targettla.py index ad43cf3cf7..7b38b9cf6c 100644 --- a/rpython/jit/tl/tla/targettla.py +++ b/rpython/jit/tl/tla/targettla.py @@ -1,17 +1,18 @@ import py py.path.local(__file__) from rpython.jit.tl.tla import tla +from rpython.rlib import jit def entry_point(args): - for i in range(len(argv)): - if argv[i] == "--jit": - if len(argv) == i + 1: + for i in range(len(args)): + if args[i] == "--jit": + if len(args) == i + 1: print "missing argument after --jit" return 2 - jitarg = argv[i + 1] - del argv[i:i+2] - jit.set_user_param(jitdriver, jitarg) + jitarg = args[i + 1] + del args[i:i+2] + jit.set_user_param(None, jitarg) break if len(args) < 3: |