diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-19 14:26:29 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-19 14:26:29 +0000 |
commit | 1a7249bc03615ffa77b23d08d8b287cce3ed10ee (patch) | |
tree | 3a0fbd6f31c008a5c3043b56f45a20659ee9a4d5 /test/lib/jit_support.rb | |
parent | 808d833d29c3b28c9c2d1c7716cd1fe07d866e8c (diff) |
test/lib/jit_support.rb: continue to skip test_jit
for icc since it's not supported yet but running on rubyci.
This reverts some part of r65175, r65176 and r65177.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/lib/jit_support.rb')
-rw-r--r-- | test/lib/jit_support.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/test/lib/jit_support.rb b/test/lib/jit_support.rb index eed82d32ca..c327aa1364 100644 --- a/test/lib/jit_support.rb +++ b/test/lib/jit_support.rb @@ -1,9 +1,8 @@ module JITSupport JIT_TIMEOUT = 600 # 10min for each... JIT_SUCCESS_PREFIX = 'JIT success \(\d+\.\dms\)' - SUPPORTED_COMPILERS = [ - 'gcc', - 'clang', + UNSUPPORTED_COMPILERS = [ + 'icc', ] module_function @@ -35,6 +34,11 @@ module JITSupport ) end + def supported? + return @supported if defined?(@supported) + @supported = !UNSUPPORTED_COMPILERS.include?(RbConfig::CONFIG['CC']) + end + def remove_mjit_logs(stderr) if RubyVM::MJIT.enabled? stderr.gsub(/^MJIT warning: Skipped to compile unsupported instruction: \w+\n/m, '') |