lib/rake/extensioncompiler.rb in rake-compiler-0.8.2 vs lib/rake/extensioncompiler.rb in rake-compiler-0.8.3
- old
+ new
@@ -37,10 +37,10 @@
# grab the paths defined in the environment
paths = ENV['PATH'].split(File::PATH_SEPARATOR)
# the pattern to look into (captures *nix and windows executables)
- pattern = "i?86*mingw*gcc{,.*}"
+ pattern = "{mingw32-,i?86*mingw*}gcc{,.*}"
@mingw_gcc_executable = paths.find do |path|
# cleanup paths before globbing
gcc = Dir.glob("#{File.expand_path(path)}/#{pattern}").first
break gcc if gcc