Skip to content

Commit 5a1fcd1

Browse files
committed
Use perl in Git installation for openssl
1 parent baa591f commit 5a1fcd1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

ext/tiny_tds/extconf.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,17 @@ def extract_file(file, target)
151151
end
152152
end
153153

154+
def execute(action, command, options={})
155+
prev_path = ENV['PATH']
156+
git_perl = 'C:/Program Files/Git/usr/bin'
157+
if File.directory?(git_perl)
158+
ENV['PATH'] = git_perl + ';' + ENV['PATH']
159+
ENV['PERL'] = 'perl'
160+
end
161+
super
162+
ENV['PATH'] = prev_path
163+
end
164+
154165
def configure
155166
config = if host=~/mingw/
156167
host=~/x86_64/ ? 'mingw64' : 'mingw'

0 commit comments

Comments
 (0)