ruby-changes:59088
From: Takashi <ko1@a...>
Date: Thu, 5 Dec 2019 18:55:39 +0900 (JST)
Subject: [ruby-changes:59088] 5fbb4555b4 (master): Prefer using MJIT_CC for JIT support check
https://git.ruby-lang.org/ruby.git/commit/?id=5fbb4555b4 From 5fbb4555b427909aed4fe2376c4c583849c1d51c Mon Sep 17 00:00:00 2001 From: Takashi Kokubun <takashikkbn@g...> Date: Wed, 4 Dec 2019 22:16:07 -0800 Subject: 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. diff --git a/test/lib/jit_support.rb b/test/lib/jit_support.rb index 4f0d16d..872bf4b 100644 --- a/test/lib/jit_support.rb +++ b/test/lib/jit_support.rb @@ -46,7 +46,7 @@ module JITSupport https://github.com/ruby/ruby/blob/trunk/test/lib/jit_support.rb#L46 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 diff --git a/tool/mkconfig.rb b/tool/mkconfig.rb index 586eb9e..f5e8809 100755 --- a/tool/mkconfig.rb +++ b/tool/mkconfig.rb @@ -62,7 +62,7 @@ File.foreach "config.status" do |line| https://github.com/ruby/ruby/blob/trunk/tool/mkconfig.rb#L62 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 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/