зеркало из https://github.com/github/ruby.git
Fix a YJIT enablement check
This should be enough for `make test` and `make btest-ruby` while it doesn't work for `make btest`.
This commit is contained in:
Родитель
4d59d01621
Коммит
8d31a60f47
|
@ -1673,7 +1673,7 @@ assert_equal '30', %q{
|
|||
}
|
||||
|
||||
# Selector#wait can support dynamic addition
|
||||
yjit_enabled = ENV.key?('RUBY_YJIT_ENABLE') || ENV.fetch('RUN_OPTS', '').include?('yjit')
|
||||
yjit_enabled = defined?(RubyVM::YJIT) && RubyVM::YJIT.enabled?
|
||||
assert_equal '600', %q{
|
||||
RN = 100
|
||||
s = Ractor::Selector.new
|
||||
|
|
Загрузка…
Ссылка в новой задаче