Issue #15474 has been updated by k0kubun (Takashi Kokubun).

Status changed from Open to Rejected

RUBYOPT is answered by shevegen. Thanks. It was also explained in release notes. And you can use "ruby --jit bin/rails s" as well. Why do we want to have more ways to specify that?

> which should only be respected by ruby >= 2.6.0

I'm not a fan of ignoring no-op config, rather I like asserting the config and making it fail. What if we typo the environment variable name? Even $RUBYOPT should be the last resort, as you typo-ed it to $RUBY_OPTS too.

----------------------------------------
Misc #15474: Running Rails with jit
https://bugs.ruby-lang.org/issues/15474#change-75934

* Author: foonlyboy (Eike Dierks)
* Status: Rejected
* Priority: Normal
* Assignee: 
----------------------------------------
I have installed ruby-2.6.0
I want to try to run my rails app with the jit.

How can this be done?
I should try env RUBY_OPTS='--jit'
Is this the way the go?

The jit ist experimental, but promising,
so we need to try it wherever we can.

there needs to be a clear documentation,
how to enable or disable jit

I'd like to enable jit by default,
when running 2.6.0

running 2.5.3 with --jit gives:
/opt/local/bin/ruby --jit -e 'puts "hello world"'
/opt/local/bin/ruby: invalid option --jit  (-h will show valid options) (RuntimeError)

I'd like to suggest a new env: RUBY_JIT
which should only be respected by ruby >= 2.6.0


~eike


















-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>