Skip to content

Commit

Permalink
[Truffle] Assume that Graal is automatically set up if RUBY_BIN is set.
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Sep 28, 2016
1 parent dc0f782 commit c0f8c56
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tool/jt.rb
Expand Up @@ -574,9 +574,14 @@ def run(*args)
end

if args.delete('--graal')
javacmd, javacmd_options = Utilities.find_graal_javacmd_and_options
env_vars["JAVACMD"] = javacmd
jruby_args.push(*javacmd_options)
if ENV["RUBY_BIN"]
# Assume that Graal is automatically set up if RUBY_BIN is set.
# This will also warn if it's not.
else
javacmd, javacmd_options = Utilities.find_graal_javacmd_and_options
env_vars["JAVACMD"] = javacmd
jruby_args.push(*javacmd_options)
end
else
jruby_args << '-Xtruffle.graal.warn_unless=false'
end
Expand Down

0 comments on commit c0f8c56

Please sign in to comment.