Skip to content

Commit

Permalink
Use perl in Git installation for openssl
Browse files Browse the repository at this point in the history
  • Loading branch information
orgads committed Mar 4, 2017
1 parent baa591f commit 5a1fcd1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ext/tiny_tds/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 5a1fcd1

Please sign in to comment.