1
0
Fork 0
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:
Takashi Kokubun 2019-12-04 22:16:07 -08:00
parent 199bd851e4
commit 5fbb4555b4
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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