aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2012-08-28 08:31:14 -0400
committerMax Howell2012-08-29 12:41:36 -0400
commit24bcc694e58024f47315474610ff8514fc65d074 (patch)
treec2f555fc1468800887bd72e1e3d1ad99a2193931 /Library
parent672388d4f71e810d0f742518b5cd4a5aa7de6e04 (diff)
downloadbrew-24bcc694e58024f47315474610ff8514fc65d074.tar.bz2
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.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/global.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/Library/Homebrew/global.rb b/Library/Homebrew/global.rb
index 066d9335f..1c979ca0e 100644
--- a/Library/Homebrew/global.rb
+++ b/Library/Homebrew/global.rb
@@ -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