Skip to content

Commit

Permalink
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/ruby/truffle/jruby+truffle/lib/runner.rb
Original file line number Diff line number Diff line change
@@ -461,11 +461,12 @@ def subcommand_run(rest)
('-Xtruffle.exceptions.print_java=true' if @options[:run][:jexception])
]

cmd_options = [
bundler_setup = "./#{@options[:global][:truffle_bundle_path]}/bundler/setup.rb"
cmd_options = [
*(truffle_options unless @options[:run][:no_truffle]),
(format(@options[:global][:debug_option], @options[:global][:debug_port]) if @options[:run][:debug]),
*ruby_options,
'-r', "./#{@options[:global][:truffle_bundle_path]}/bundler/setup.rb",
*(['-r', bundler_setup] if File.exist? bundler_setup),
*@options[:run][:load_path].flat_map { |v| ['-I', v] },
*@options[:run][:require].flat_map { |v| ['-r', v] }
].compact

1 comment on commit 2fc27e3

@eregon
Copy link
Member

@eregon eregon commented on 2fc27e3 Apr 9, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice and concise 😃

Sorry, something went wrong.

Please sign in to comment.