[ruby/open3] Removed to load jit_support.rb

It's removed at https://github.com/ruby/open3/commit/4445b9e2a2dd

https://github.com/ruby/open3/commit/41b180deab
This commit is contained in:
Hiroshi SHIBATA 2023-03-14 12:29:09 +09:00 коммит произвёл git
Родитель 3352e76441
Коммит 67feb782f9
1 изменённых файлов: 0 добавлений и 25 удалений

Просмотреть файл

@ -1,25 +0,0 @@
require 'rbconfig'
module JITSupport
module_function
def yjit_supported?
return @yjit_supported if defined?(@yjit_supported)
# nil in mswin
@yjit_supported = ![nil, 'no'].include?(RbConfig::CONFIG['YJIT_SUPPORT'])
end
def yjit_force_enabled?
"#{RbConfig::CONFIG['CFLAGS']} #{RbConfig::CONFIG['CPPFLAGS']}".match?(/(\A|\s)-D ?YJIT_FORCE_ENABLE\b/)
end
def rjit_supported?
return @rjit_supported if defined?(@rjit_supported)
# nil in mswin
@rjit_supported = ![nil, 'no'].include?(RbConfig::CONFIG['RJIT_SUPPORT'])
end
def rjit_force_enabled?
"#{RbConfig::CONFIG['CFLAGS']} #{RbConfig::CONFIG['CPPFLAGS']}".match?(/(\A|\s)-D ?RJIT_FORCE_ENABLE\b/)
end
end