Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

「環境変数」に抜けているものがある #2641

Open
scivola opened this issue Jan 6, 2022 · 1 comment
Open

「環境変数」に抜けているものがある #2641

scivola opened this issue Jan 6, 2022 · 1 comment

Comments

@scivola
Copy link
Contributor

scivola commented Jan 6, 2022

https://docs.ruby-lang.org/ja/3.1/doc/spec=2fenvvars.html
に,Ruby 3.1 で導入された環境変数 RUBY_YJIT_ENABLE が抜けています。

あと,よく分かりませんが,Windows だと RUBYLIB_PREFIX があるんでしたっけ?

個別のライブラリーが参照する環境変数は(組込みクラスに限っても)挙げるとキリがないのかもしれませんが,RubyVM が参照する環境変数(RUBY_THREAD_VM_STACK_SIZE など)は入れなくていいのでしょうか?

@znz
Copy link
Member

znz commented Feb 24, 2022

RUBY_ON_BUG の追加でどうすればいいのかと思って調べてみました。

ruby 本体のドキュメントだと環境変数は man/ruby.1 に入っていて、 STACK SIZE ENVIRONMENT があるので、そのあたりは書いておいた方が良さそうです。

RUBY_YJIT_ENABLE は ruby 本体にドキュメントがなさそうなので、優先度は低いと思います。

RUBYLIB_PREFIXruby/ruby@6613580 で消えているので、 ruby 2.2 では完全に消えていて、その5年前から無効になっていたようです。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants