Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tool/jt.rb
Original file line number Diff line number Diff line change
@@ -587,6 +587,7 @@ def rebuild

def run(*args)
env_vars = args.first.is_a?(Hash) ? args.shift : {}
options = args.last.is_a?(Hash) ? args.pop : {}

jruby_args = ['-X+T']

@@ -670,8 +671,6 @@ def run(*args)
jruby_args << "-J-Dgraal.TraceTruffleCompilation=true"
end

args << options = {}

if args.delete('--no-print-cmd')
options[:no_print_cmd] = true
end
@@ -680,7 +679,7 @@ def run(*args)
options[:use_exec] = true
end

raw_sh env_vars, Utilities.find_jruby, *jruby_args, *args
raw_sh env_vars, Utilities.find_jruby, *jruby_args, *args, options
end

# Same as #run but uses exec()

0 comments on commit 28aebbb

Please sign in to comment.