summaryrefslogtreecommitdiff
path: root/test/lib
diff options
context:
space:
mode:
authorTakashi Kokubun <[email protected]>2023-03-06 23:15:30 -0800
committerTakashi Kokubun <[email protected]>2023-03-06 23:44:01 -0800
commit2e875549a934fa04b7939810fa0d8a2762702aaa (patch)
tree116b99056f810d48359ac6fa6a3b06e9ddc65c05 /test/lib
parenteaccdc1941304d6273397b21c25213174d892185 (diff)
s/MJIT/RJIT/
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/7462
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/jit_support.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/lib/jit_support.rb b/test/lib/jit_support.rb
index 9ff1914133..769bc3d644 100644
--- a/test/lib/jit_support.rb
+++ b/test/lib/jit_support.rb
@@ -54,11 +54,11 @@ module JITSupport
)
end
- # For MJIT
+ # For RJIT
def supported?
return @supported if defined?(@supported)
- @supported = RbConfig::CONFIG["MJIT_SUPPORT"] != 'no' &&
- UNSUPPORTED_COMPILERS.all? { |regexp| !regexp.match?(RbConfig::CONFIG['MJIT_CC']) } &&
+ @supported = RbConfig::CONFIG["RJIT_SUPPORT"] != 'no' &&
+ UNSUPPORTED_COMPILERS.all? { |regexp| !regexp.match?(RbConfig::CONFIG['RJIT_CC']) } &&
!PENDING_RUBYCI_NICKNAMES.include?(ENV['RUBYCI_NICKNAME']) &&
!UNSUPPORTED_ARCHITECTURES.include?(RUBY_PLATFORM.split('-', 2).first)
end
@@ -70,8 +70,8 @@ module JITSupport
end
def remove_mjit_logs(stderr)
- if defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled? # utility for -DFORCE_MJIT_ENABLE
- stderr.gsub(/^MJIT warning: Skipped to compile unsupported instruction: \w+\n/m, '')
+ if defined?(RubyVM::RJIT) && RubyVM::RJIT.enabled? # utility for -DFORCE_RJIT_ENABLE
+ stderr.gsub(/^RJIT warning: Skipped to compile unsupported instruction: \w+\n/m, '')
else
stderr
end
@@ -88,6 +88,6 @@ module JITSupport
end
def mjit_force_enabled?
- "#{RbConfig::CONFIG['CFLAGS']} #{RbConfig::CONFIG['CPPFLAGS']}".match?(/(\A|\s)-D ?MJIT_FORCE_ENABLE\b/)
+ "#{RbConfig::CONFIG['CFLAGS']} #{RbConfig::CONFIG['CPPFLAGS']}".match?(/(\A|\s)-D ?RJIT_FORCE_ENABLE\b/)
end
end