Skip to content

Commit

Permalink
Extend mingw search pattern to find x86_64 gcc (#164)
Browse files Browse the repository at this point in the history
The previous pattern only recognized 32 bit compiler versions.
  • Loading branch information
larskanis authored and kou committed Dec 27, 2019
1 parent d76da27 commit ad5ff46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rake/extensioncompiler.rb
Expand Up @@ -37,7 +37,7 @@ def self.mingw_gcc_executable
paths = ENV['PATH'].split(File::PATH_SEPARATOR)

# the pattern to look into (captures *nix and windows executables)
pattern = "{mingw32-,i?86*mingw*}gcc{,.*}"
pattern = "{mingw32-,i?86*mingw*,x86*mingw*}gcc{,.*}"

@mingw_gcc_executable = paths.find do |path|
# cleanup paths before globbing
Expand Down

0 comments on commit ad5ff46

Please sign in to comment.