aboutsummaryrefslogtreecommitdiffstats
path: root/test/lib
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-03-10 10:07:52 -0800
committerGitHub <noreply@github.com>2023-03-10 10:07:52 -0800
commitac5f983f7d2695696693e88aa9c00b5cf2b46c37 (patch)
tree4f6f60f31e08be5ef6c2a2cb16e401d416a124da /test/lib
parent365fed6369cf490f44878322fcaeddf9dfcb02f5 (diff)
downloadruby-ac5f983f7d2695696693e88aa9c00b5cf2b46c37.tar.gz
RJIT: Break up and enable test_version (#7495)
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/jit_support.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/lib/jit_support.rb b/test/lib/jit_support.rb
index d9c2522641..a8f4adfe9d 100644
--- a/test/lib/jit_support.rb
+++ b/test/lib/jit_support.rb
@@ -63,6 +63,12 @@ module JITSupport
!UNSUPPORTED_ARCHITECTURES.include?(RUBY_PLATFORM.split('-', 2).first)
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 yjit_supported?
return @yjit_supported if defined?(@yjit_supported)
# nil in mswin