mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 13:04:13 +02:00
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.
This commit is contained in:
parent
199bd851e4
commit
5fbb4555b4
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue