summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/lib/jit_support.rb2
-rwxr-xr-xtool/mkconfig.rb2
2 files changed, 2 insertions, 2 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
diff --git a/tool/mkconfig.rb b/tool/mkconfig.rb
index 586eb9ec59..f5e8809fcf 100755
--- a/tool/mkconfig.rb
+++ b/tool/mkconfig.rb
@@ -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