lib/mkmf/lite.rb in mkmf-lite-0.2.4 vs lib/mkmf/lite.rb in mkmf-lite-0.2.5
- old
+ new
@@ -10,11 +10,11 @@
end
module Mkmf
module Lite
# The version of the mkmf-lite library
- MKMF_LITE_VERSION = '0.2.4'
+ MKMF_LITE_VERSION = '0.2.5'
@@cpp_command = RbConfig::CONFIG['CC'] || RbConfig::CONFIG['CPP']
@@cpp_srcfile = 'conftest.c'
if File::ALT_SEPARATOR && RbConfig::CONFIG['CPP'] =~ /^cl/
@@ -39,9 +39,14 @@
when /sunos|solaris|hpux/i
@@cpp_command = File.which('cc') || File.which('gcc')
else
@@cpp_command = 'gcc'
end
+ end
+
+ # Ruby installer can't be trusted to set a sane value
+ if RbConfig::CONFIG['host_os'] =~ /mingw/i
+ @@cpp_command = File.which('gcc')
end
# Check for the presence of the given +header+ file. You may optionally
# provide a list of directories to search.
#