diff options
| author | Max Howell | 2012-02-16 18:13:44 +0000 |
|---|---|---|
| committer | Max Howell | 2012-02-16 18:19:01 +0000 |
| commit | a69ec7a22bd521d5a48b955bab9c319e761a7851 (patch) | |
| tree | a770cd153e90a849b9cb211e85c7397f20eb042d /Library | |
| parent | 66f942aa66d9de764e59bf3d36c9d8d61f05f247 (diff) | |
| download | brew-a69ec7a22bd521d5a48b955bab9c319e761a7851.tar.bz2 | |
Add dev_tools_path to PATH if not in PATH already
This prevents what are likely a whole slew of bugs.
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Homebrew/build.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Homebrew/build.rb b/Library/Homebrew/build.rb index f704e05ef..2b869eeab 100755 --- a/Library/Homebrew/build.rb +++ b/Library/Homebrew/build.rb @@ -23,6 +23,9 @@ at_exit do ENV.setup_build_environment # we must do this or tools like pkg-config won't get found by configure scripts etc. ENV.prepend 'PATH', "#{HOMEBREW_PREFIX}/bin", ':' unless ORIGINAL_PATHS.include? "#{HOMEBREW_PREFIX}/bin" + # this is a safety measure for Xcode 4.3 which started not installing + # dev tools into /usr/bin as a default + ENV.prepend 'PATH', MacOS.dev_tools_path, ':' unless ORIGINAL_PATHS.include? MacOS.dev_tools_path install(Formula.factory($0)) rescue Exception => e |
