Merge pull request #3386 from MikeMcQuaid/config-homebrew-path

system_config: get perl/ruby from HOMEBREW_PATH.
This commit is contained in:
Mike McQuaid 2017-10-29 13:32:52 +00:00 committed by GitHub
commit e94810950d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,7 @@ class SystemConfig
end
def describe_perl
describe_path(which("perl"))
describe_path(which("perl", ENV["HOMEBREW_PATH"]))
end
def describe_python
@ -96,7 +96,7 @@ class SystemConfig
end
def describe_ruby
ruby = which "ruby"
ruby = which "ruby", ENV["HOMEBREW_PATH"]
return "N/A" if ruby.nil?
ruby_binary = Utils.popen_read ruby, "-rrbconfig", "-e", \
'include RbConfig;print"#{CONFIG["bindir"]}/#{CONFIG["ruby_install_name"]}#{CONFIG["EXEEXT"]}"'