From 154d0fa92d982bc485acb0922ec646caf87f0445 Mon Sep 17 00:00:00 2001 From: Chris Hoffman Date: Thu, 17 Jun 2010 10:53:23 -0500 Subject: [PATCH] Fix exception when installing with --use-llvm Signed-off-by: Adam Vandenberg --- Library/Homebrew/extend/ENV.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb index 9ce298b05a..551b2a0dd6 100644 --- a/Library/Homebrew/extend/ENV.rb +++ b/Library/Homebrew/extend/ENV.rb @@ -21,7 +21,7 @@ module HomebrewEnvExtension if MACOS_VERSION >= 10.6 and (ENV['HOMEBREW_USE_LLVM'] or ARGV.include? '--use-llvm') # you can install Xcode wherever you like you know. xcode_path = `/usr/bin/xcode-select -print-path`.chomp - xcode_path = "/Developer" if xcode_prefix.to_s.empty? + xcode_path = "/Developer" if xcode_path.to_s.empty? ENV['CC'] = "#{xcode_path}/usr/bin/llvm-gcc" ENV['CXX'] = "#{xcode_path}/usr/bin/llvm-g++"