diff options
| author | Adam Vandenberg | 2010-04-15 13:07:59 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-04-15 13:07:59 -0700 |
| commit | a680b66fc44c2ad517a34503a17f4c3cdeb5ed98 (patch) | |
| tree | b4fe821f66c9857bc691747e0f8d314e59d146ec /Library | |
| parent | 203d4b221884be90ac1410c77d3f0c4ec37355aa (diff) | |
| download | homebrew-a680b66fc44c2ad517a34503a17f4c3cdeb5ed98.tar.bz2 | |
Do not assume /Developer when checking LLVM. Fixes #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 |
