summaryrefslogtreecommitdiff
path: root/test/lib/jit_support.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-03-14 12:29:09 +0900
committergit <svn-admin@ruby-lang.org>2023-03-27 03:24:48 +0000
commit67feb782f947046f65951303893713052a19a546 (patch)
tree44550b47428bfb2aaef6666200478e4787fd86d1 /test/lib/jit_support.rb
parent3352e76441b9c62704004df065a1a7e7784496a4 (diff)
[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
Diffstat (limited to 'test/lib/jit_support.rb')
-rw-r--r--test/lib/jit_support.rb25
1 files changed, 0 insertions, 25 deletions
diff --git a/test/lib/jit_support.rb b/test/lib/jit_support.rb
deleted file mode 100644
index 3f21367987..0000000000
--- a/test/lib/jit_support.rb
+++ /dev/null
@@ -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