diff --git a/ext/tiny_tds/extconf.rb b/ext/tiny_tds/extconf.rb index 147a58cd..47708570 100644 --- a/ext/tiny_tds/extconf.rb +++ b/ext/tiny_tds/extconf.rb @@ -151,6 +151,17 @@ def extract_file(file, target) end end + def execute(action, command, options={}) + prev_path = ENV['PATH'] + git_perl = 'C:/Program Files/Git/usr/bin' + if File.directory?(git_perl) + ENV['PATH'] = git_perl + ';' + ENV['PATH'] + ENV['PERL'] = 'perl' + end + super + ENV['PATH'] = prev_path + end + def configure config = if host=~/mingw/ host=~/x86_64/ ? 'mingw64' : 'mingw'