diff options
author | Takashi Kokubun <[email protected]> | 2019-12-04 22:16:07 -0800 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2019-12-04 22:16:08 -0800 |
commit | 5fbb4555b427909aed4fe2376c4c583849c1d51c (patch) | |
tree | 4c7accd8a9953912051ecd6a1d131e2d92dcfacb /test/lib/jit_support.rb | |
parent | 199bd851e40438380b2e0f57662a212200e3ba1a (diff) |
Prefer using MJIT_CC for JIT support check
because Solaris might have CC=cc and we'd like to check full path
MJIT_CC=/opt/developerstudio12.5/bin/cc instead.
Diffstat (limited to 'test/lib/jit_support.rb')
-rw-r--r-- | test/lib/jit_support.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/jit_support.rb b/test/lib/jit_support.rb index 4f0d16d487..872bf4b699 100644 --- a/test/lib/jit_support.rb +++ b/test/lib/jit_support.rb @@ -46,7 +46,7 @@ module JITSupport def supported? return @supported if defined?(@supported) @supported = UNSUPPORTED_COMPILERS.all? do |regexp| - !regexp.match?(RbConfig::CONFIG['CC']) + !regexp.match?(RbConfig::CONFIG['MJIT_CC']) end && RbConfig::CONFIG["MJIT_SUPPORT"] != 'no' end |