mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Check MJIT support in one place
to fix test failure on trunk-no-mjit https://gist.github.com/ko1/32ab982ffd7555988818773c08f97123
This commit is contained in:
parent
6bc8b4d8ea
commit
b3ea0980db
2 changed files with 1 additions and 3 deletions
|
@ -47,7 +47,7 @@ module JITSupport
|
||||||
return @supported if defined?(@supported)
|
return @supported if defined?(@supported)
|
||||||
@supported = UNSUPPORTED_COMPILERS.all? do |regexp|
|
@supported = UNSUPPORTED_COMPILERS.all? do |regexp|
|
||||||
!regexp.match?(RbConfig::CONFIG['CC'])
|
!regexp.match?(RbConfig::CONFIG['CC'])
|
||||||
end
|
end && RbConfig::CONFIG["MJIT_SUPPORT"] != 'no'
|
||||||
end
|
end
|
||||||
|
|
||||||
def remove_mjit_logs(stderr)
|
def remove_mjit_logs(stderr)
|
||||||
|
|
|
@ -3,8 +3,6 @@ require 'test/unit'
|
||||||
require 'tmpdir'
|
require 'tmpdir'
|
||||||
require_relative '../lib/jit_support'
|
require_relative '../lib/jit_support'
|
||||||
|
|
||||||
return if RbConfig::CONFIG["MJIT_SUPPORT"] == 'no'
|
|
||||||
|
|
||||||
# Test for --jit option
|
# Test for --jit option
|
||||||
class TestJIT < Test::Unit::TestCase
|
class TestJIT < Test::Unit::TestCase
|
||||||
include JITSupport
|
include JITSupport
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue