aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2011-04-26 14:13:53 -0700
committerAdam Vandenberg2011-04-26 14:13:53 -0700
commitdb7e74b63551451bcf44ccfad7038e94f2a54094 (patch)
treef611e631f455b5d4162ca59be8f2a276ef8ba8d9 /Library/Homebrew/utils.rb
parent0d3f0d04b2018056ff9df768c6d0669321757d5e (diff)
downloadhomebrew-db7e74b63551451bcf44ccfad7038e94f2a54094.tar.bz2
No really, fix llvm_build_version and xcode_prefix
Diffstat (limited to 'Library/Homebrew/utils.rb')
-rw-r--r--Library/Homebrew/utils.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index 44a2d0ce9..dd5707e66 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -264,7 +264,7 @@ module MacOS extend self
elsif File.directory? '/Developer'
# we do this to support cowboys who insist on installing
# only a subset of Xcode
- '/Developer'
+ Pathname.new '/Developer'
else
nil
end
@@ -273,7 +273,7 @@ module MacOS extend self
def llvm_build_version
unless xcode_prefix.to_s.empty?
- llvm_gcc_path = xcode_prefix.to_s + "usr/bin/llvm-gcc"
+ llvm_gcc_path = xcode_prefix/"usr/bin/llvm-gcc"
# for Xcode 3 on OS X 10.5 this will not exist
if llvm_gcc_path.file?
`#{llvm_gcc_path} -v 2>&1` =~ /LLVM build (\d{4,})/