diff options
Diffstat (limited to 'test/lib')
-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, '') |