diff options
author | Carl Friedrich Bolz-Tereick <cfbolz@gmx.de> | 2021-02-19 17:33:31 +0100 |
---|---|---|
committer | Carl Friedrich Bolz-Tereick <cfbolz@gmx.de> | 2021-02-19 17:33:31 +0100 |
commit | 2bd3ffe2ba9046aab04dc9cd26ed246409679c40 (patch) | |
tree | cdb0c596a163b10b7facb07921a809a7f94bdc90 | |
parent | fix translation error on 32b Linux (diff) | |
download | pypy-2bd3ffe2ba9046aab04dc9cd26ed246409679c40.tar.gz pypy-2bd3ffe2ba9046aab04dc9cd26ed246409679c40.tar.bz2 pypy-2bd3ffe2ba9046aab04dc9cd26ed246409679c40.zip |
randomly fix broken target
-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: |