diff options
| author | Adam Vandenberg | 2010-04-15 13:07:59 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-04-15 13:07:59 -0700 |
| commit | 9295f9c022305998bf375f12429593141203ce8d (patch) | |
| tree | c9d2ffd48b824b8e5b61d6573c1de5a3a95faecb /Library | |
| parent | f144dcab60215d698007d49281187c1e54fa96be (diff) | |
| download | brew-9295f9c022305998bf375f12429593141203ce8d.tar.bz2 | |
Do not assume /Developer when checking LLVM. Fixes Homebrew/homebrew#1160.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/brew.h.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/brew.h.rb b/Library/Homebrew/brew.h.rb index 0c9017760..b05ce2ed2 100644 --- a/Library/Homebrew/brew.h.rb +++ b/Library/Homebrew/brew.h.rb @@ -544,7 +544,9 @@ end def llvm_build if MACOS_VERSION >= 10.6 - `/Developer/usr/bin/llvm-gcc-4.2 -v 2>&1` =~ /LLVM build (\d{4,})/ + xcode_path = `/usr/bin/xcode-select -print-path`.chomp + return nil if xcode_path.empty? + `#{xcode_path}/usr/bin/llvm-gcc-4.2 -v 2>&1` =~ /LLVM build (\d{4,})/ $1.to_i end end |
