mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05: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
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@ File.foreach "config.status" do |line|
|
|||
when /^(?:X|(?:MINI|RUN|(?:HAVE_)?BASE|BOOTSTRAP|BTEST)RUBY(?:_COMMAND)?$)/; next
|
||||
when /^INSTALLDOC|TARGET$/; next
|
||||
when /^DTRACE/; next
|
||||
when /^MJIT_SUPPORT/; # pass
|
||||
when /^MJIT_(CC|SUPPORT)/; # pass
|
||||
when /^MJIT_/; next
|
||||
when /^(?:MAJOR|MINOR|TEENY)$/; vars[name] = val; next
|
||||
when /^LIBRUBY_D?LD/; next
|
||||
|
|
Loading…
Reference in a new issue