1
0
Fork 0
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:
Takashi Kokubun 2019-12-01 10:53:58 -08:00
parent 6bc8b4d8ea
commit b3ea0980db
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD
2 changed files with 1 additions and 3 deletions

View file

@ -47,7 +47,7 @@ module JITSupport
return @supported if defined?(@supported)
@supported = UNSUPPORTED_COMPILERS.all? do |regexp|
!regexp.match?(RbConfig::CONFIG['CC'])
end
end && RbConfig::CONFIG["MJIT_SUPPORT"] != 'no'
end
def remove_mjit_logs(stderr)

View file

@ -3,8 +3,6 @@ require 'test/unit'
require 'tmpdir'
require_relative '../lib/jit_support'
return if RbConfig::CONFIG["MJIT_SUPPORT"] == 'no'
# Test for --jit option
class TestJIT < Test::Unit::TestCase
include JITSupport