Speed up brew instantiation

Adding MacOS.dev_tools_path to our PATH was slow. We no longer need to do this because of the previous commit making a script wrapper for git and svn. It was slow because the function calls out to lots of slow utilities to determine this path.
This commit is contained in:
Max Howell 2012-08-28 08:31:14 -04:00
parent 672388d4f7
commit 24bcc694e5

View File

@ -95,9 +95,3 @@ unless ARGV.include? "--no-compat" or ENV['HOMEBREW_NO_COMPAT']
end
ORIGINAL_PATHS = ENV['PATH'].split(':').map{ |p| Pathname.new(File.expand_path(p)) }
# Xcode-only installs place tools in non-standard locations, and we also want
# to ensure the dev tools are in the PATH in build.rb
unless ORIGINAL_PATHS.include? MacOS.dev_tools_path
ENV['PATH'] = ENV['PATH'].to_s + ':' + MacOS.dev_tools_path.to_s
end